aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/Net
diff options
context:
space:
mode:
authorSebas Koetsier <sebas@koetsier.org>2026-04-18 15:38:17 +0200
committerSebas Koetsier <sebas@koetsier.org>2026-04-18 15:38:17 +0200
commit48b0029180d37cf20626ea2c19622db0d2b63278 (patch)
tree40a34260e9c653455bd3ba89d98277d51d7f492d /MediaBrowser.Model/Net
parent946ff12185289b5dc38732497bb362aab7f192fe (diff)
fix: add image/jpg to MIME type extension lookup
Although image/jpg is not a registered MIME type (RFC 2046 specifies image/jpeg), several external providers return image/jpg as the Content-Type for JPEG images: - TMDb API (thumbnail/episode images) - Schedules Direct EPG - Various other metadata providers Without this mapping, Jellyfin throws ArgumentException: 'Unable to determine image file extension from mime type image/jpg' This causes library scans to fail when saving episode thumbnails and other images from these providers, leading to repeated scan failures and cancelled library scans. PR #7052 previously added this but it was lost during the migration to FrozenDictionary. Issue #13568 reports the same bug in 10.10+. Fixes: jellyfin/jellyfin#13568 Related: jellyfin/jellyfin#7050, jellyfin/jellyfin#7052
Diffstat (limited to 'MediaBrowser.Model/Net')
-rw-r--r--MediaBrowser.Model/Net/MimeTypes.cs1
1 files changed, 1 insertions, 0 deletions
diff --git a/MediaBrowser.Model/Net/MimeTypes.cs b/MediaBrowser.Model/Net/MimeTypes.cs
index 79f8675cbf..c0d1bc86e7 100644
--- a/MediaBrowser.Model/Net/MimeTypes.cs
+++ b/MediaBrowser.Model/Net/MimeTypes.cs
@@ -132,6 +132,7 @@ namespace MediaBrowser.Model.Net
// Type image
new("image/jpeg", ".jpg"),
+ new("image/jpg", ".jpg"),
new("image/tiff", ".tiff"),
new("image/x-png", ".png"),
new("image/x-icon", ".ico"),