소스 검색

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))
                     {