Kaynağa Gözat

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>
wehrstedt 4 yıl önce
ebeveyn
işleme
ad1d9d9a23

+ 1 - 1
MediaBrowser.Providers/Manager/ProviderManager.cs

@@ -167,7 +167,7 @@ namespace MediaBrowser.Providers.Manager
                 throw new HttpRequestException("Invalid image received.", null, response.StatusCode);
                 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
             // Workaround for tvheadend channel icons
             // TODO: Isolate this hack into the tvh plugin
             // TODO: Isolate this hack into the tvh plugin