[PR #7521] Add fallback for image downloads with bad reported MediaType #11437

Closed
opened 2026-02-07 06:38:28 +03:00 by OVERLORD · 0 comments
Owner

Original Pull Request: https://github.com/jellyfin/jellyfin/pull/7521

State: closed
Merged: Yes


ImageSaver uses contentType to determine the file extension to use when saving the image.

Some IPTV/EPG providers serve images that report as types that don't map to extensions (such as binary/octet-stream), resulting in no channel icon and logged exceptions every time one is downloaded and can't be saved.

This may be a more general fix for the tvheadend workaround on line 177, but I have been unable to reproduce that case on my dev machine to verify.

Changes

  • Add fallback for image downloads with bad MediaType
**Original Pull Request:** https://github.com/jellyfin/jellyfin/pull/7521 **State:** closed **Merged:** Yes --- `ImageSaver` uses `contentType` to determine the file extension to use when saving the image. Some IPTV/EPG providers serve images that report as types that don't map to extensions (such as `binary/octet-stream`), resulting in no channel icon and logged exceptions every time one is downloaded and can't be saved. This may be a more general fix for the tvheadend workaround on line 177, but I have been unable to reproduce that case on my dev machine to verify. **Changes** - Add fallback for image downloads with bad MediaType
OVERLORD added the pull-request label 2026-02-07 06:38:28 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#11437