aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2017-10-22 17:38:03 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2017-10-22 17:38:03 -0400
commitac09136a3d73d97956efa9253951d66fdffc7504 (patch)
tree4b1cf58fadc3049d4229e9de7d8f0928d74a2dc6 /Emby.Server.Implementations
parentf6df19ddf4b1e412abe90ad28d237edb5fc24ece (diff)
restore GetImageSize method
Diffstat (limited to 'Emby.Server.Implementations')
-rw-r--r--Emby.Server.Implementations/LiveTv/Listings/SchedulesDirect.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/Emby.Server.Implementations/LiveTv/Listings/SchedulesDirect.cs b/Emby.Server.Implementations/LiveTv/Listings/SchedulesDirect.cs
index 136d0cc7f..b3c7ecc9f 100644
--- a/Emby.Server.Implementations/LiveTv/Listings/SchedulesDirect.cs
+++ b/Emby.Server.Implementations/LiveTv/Listings/SchedulesDirect.cs
@@ -650,6 +650,9 @@ namespace Emby.Server.Implementations.LiveTv.Listings
bool enableRetry,
ListingsProviderInfo providerInfo)
{
+ // Schedules direct requires that the client support compression and will return a 400 response without it
+ options.EnableHttpCompression = true;
+
try
{
return await _httpClient.Post(options).ConfigureAwait(false);
@@ -678,6 +681,9 @@ namespace Emby.Server.Implementations.LiveTv.Listings
bool enableRetry,
ListingsProviderInfo providerInfo)
{
+ // Schedules direct requires that the client support compression and will return a 400 response without it
+ options.EnableHttpCompression = true;
+
try
{
return await _httpClient.SendAsync(options, "GET").ConfigureAwait(false);