瀏覽代碼

Lineups retrieval

Eric Reed 10 年之前
父節點
當前提交
d6dc1826cc
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. 4 2
      MediaBrowser.Server.Implementations/LiveTv/Listings/Emby/EmbyListingsNorthAmerica.cs

+ 4 - 2
MediaBrowser.Server.Implementations/LiveTv/Listings/Emby/EmbyListingsNorthAmerica.cs

@@ -45,8 +45,10 @@ namespace MediaBrowser.Server.Implementations.LiveTv.Listings.Emby
 
         public async Task<List<NameIdPair>> GetLineups(ListingsProviderInfo info, string country, string location)
         {
-            // location = zip code
-            var response = await GetResponse<LineupInfo[]>("https://data.emby.media/service/lineups?id=" + location).ConfigureAwait(false);
+            // location = postal code
+            var path = await GetResponse<String>("https://data.emby.media/service/lineups?postalCode=" + location).ConfigureAwait(false);
+
+            var response = await GetResponse<LineupInfo[]>("https://data.emby.media" + path).ConfigureAwait(false);
 
             return response.Select(i => new NameIdPair
             {