Browse Source

Backport fix for #9503

Bond_009 1 năm trước cách đây
mục cha
commit
768497d0ff

+ 4 - 0
MediaBrowser.Providers/Manager/ProviderManager.cs

@@ -181,6 +181,10 @@ namespace MediaBrowser.Providers.Manager
                 {
                 {
                     contentType = "image/png";
                     contentType = "image/png";
                 }
                 }
+                else
+                {
+                    throw new HttpRequestException("Invalid image received: contentType not set.", null, response.StatusCode);
+                }
             }
             }
 
 
             // thetvdb will sometimes serve a rubbish 404 html page with a 200 OK code, because reasons...
             // thetvdb will sometimes serve a rubbish 404 html page with a 200 OK code, because reasons...