aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwehrstedt <maximilian.wehrstedt@outlook.de>2021-05-06 23:07:32 +0200
committerGitHub <noreply@github.com>2021-05-06 23:07:32 +0200
commitad1d9d9a23c4bff7a485a61fe41639a7d1b3491e (patch)
tree2d9e9eda8806e04447600f81d4789402f4a0aaae
parent4b31c007e3afea329d41b6bda7a5de1f53db2a95 (diff)
fixed no channel icons when using tvheadend (#5996)
Co-authored-by: Cody Robibero <cody@robibe.ro> Co-authored-by: Maximilian Wehrstedt <wehrstedt.coding@outlook.de>
-rw-r--r--MediaBrowser.Providers/Manager/ProviderManager.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/MediaBrowser.Providers/Manager/ProviderManager.cs b/MediaBrowser.Providers/Manager/ProviderManager.cs
index 08c92e15a..dd497845d 100644
--- a/MediaBrowser.Providers/Manager/ProviderManager.cs
+++ b/MediaBrowser.Providers/Manager/ProviderManager.cs
@@ -167,7 +167,7 @@ namespace MediaBrowser.Providers.Manager
throw new HttpRequestException("Invalid image received.", null, response.StatusCode);
}
- var contentType = response.Content.Headers.ContentType.MediaType;
+ var contentType = response.Content.Headers.ContentType?.MediaType;
// Workaround for tvheadend channel icons
// TODO: Isolate this hack into the tvh plugin