mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-07-22 21:50:36 +02:00
Fix response
This commit is contained in:
parent
1e9292c454
commit
f2f917ccee
|
@ -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))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue