From 48b0029180d37cf20626ea2c19622db0d2b63278 Mon Sep 17 00:00:00 2001 From: Sebas Koetsier Date: Sat, 18 Apr 2026 15:38:17 +0200 Subject: [PATCH] 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 --- MediaBrowser.Model/Net/MimeTypes.cs | 1 + 1 file changed, 1 insertion(+) 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"),