Fix response

This commit is contained in:
Eric Reed 2015-08-10 15:46:09 -04:00
parent 1e9292c454
commit f2f917ccee

View file

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