Lineups retrieval

pull/702/head
Eric Reed 9 years ago
parent 23b88a69bf
commit d6dc1826cc

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

Loading…
Cancel
Save