diff options
| author | Sebas Koetsier <sebas@koetsier.org> | 2026-04-18 15:38:17 +0200 |
|---|---|---|
| committer | Sebas Koetsier <sebas@koetsier.org> | 2026-04-18 15:38:17 +0200 |
| commit | 48b0029180d37cf20626ea2c19622db0d2b63278 (patch) | |
| tree | 40a34260e9c653455bd3ba89d98277d51d7f492d /MediaBrowser.Model | |
| parent | 946ff12185289b5dc38732497bb362aab7f192fe (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')
| -rw-r--r-- | MediaBrowser.Model/Net/MimeTypes.cs | 1 |
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"), |
