From 768497d0ff8d5b24d87a78b9c31075c5941e9a62 Mon Sep 17 00:00:00 2001 From: Bond_009 Date: Mon, 3 Jul 2023 00:07:04 +0200 Subject: [PATCH] Backport fix for #9503 --- MediaBrowser.Providers/Manager/ProviderManager.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/MediaBrowser.Providers/Manager/ProviderManager.cs b/MediaBrowser.Providers/Manager/ProviderManager.cs index 01ff473f0c..4109e90206 100644 --- a/MediaBrowser.Providers/Manager/ProviderManager.cs +++ b/MediaBrowser.Providers/Manager/ProviderManager.cs @@ -181,6 +181,10 @@ namespace MediaBrowser.Providers.Manager { 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...