mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-24 11:05:08 +01:00
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
This commit is contained in:
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user