mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-16 05:43:54 +03:00
[PR #15766] [MERGED] Fix backdrop images being deleted when stored with media #14412
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/jellyfin/jellyfin/pull/15766
Author: @theguymadmax
Created: 12/11/2025
Status: ✅ Merged
Merged: 12/13/2025
Merged by: @crobibero
Base:
release-10.11.z← Head:fix-local-background-images📝 Commits (1)
9b45ec0Fix backdrop images being deleted when stored with media📊 Changes
1 file changed (+38 additions, -4 deletions)
View changed files
📝
MediaBrowser.Providers/Manager/ItemImageProvider.cs(+38 -4)📄 Description
When "Save artwork into media folders" is disabled and backdrop images are stored next to media, running "Replace all metadata" with "Replace existing images" would incorrectly delete backdrop images while preserving other image types (Primary, Logo, Thumb, etc.).
Changes
ItemImageProvider.cs -
RemoveImagesmethodApply the same conditional logic to backdrop images as singular images:
canDeleteLocalis true, ORItemImageProvider.cs -
MergeImagesmethodfoundImageTypesto prevent replacementIssues
Fixes #15759
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.