浏览代码

Fix response

Eric Reed 10 年之前
父节点
当前提交
f2f917ccee
共有 1 个文件被更改,包括 2 次插入4 次删除
  1. 2 4
      MediaBrowser.Server.Implementations/LiveTv/Listings/Emby/EmbyListingsNorthAmerica.cs

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

@@ -46,9 +46,7 @@ namespace MediaBrowser.Server.Implementations.LiveTv.Listings.Emby
         public async Task<List<NameIdPair>> GetLineups(string country, string location)
         {
             // location = postal code
-            var path = await GetResponse<String>("https://data.emby.media/service/lineups?postalCode=" + location).ConfigureAwait(false);
-
-            var response = await GetResponse<LineupInfo[]>("https://www.mb3admin.com" + path).ConfigureAwait(false);
+            var response = await GetResponse<LineupInfo[]>("https://data.emby.media/service/lineups?postalCode=" + location).ConfigureAwait(false);
 
             return response.Select(i => new NameIdPair
             {
@@ -93,7 +91,7 @@ namespace MediaBrowser.Server.Implementations.LiveTv.Listings.Emby
 
                     using (var secondStream = await _httpClient.Get(new HttpRequestOptions
                     {
-                        Url = "https://data.emby.media" + path
+                        Url = "https://www.mb3admin.com" + path
 
                     }).ConfigureAwait(false))
                     {