mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Ignore local images when replacing and saving is enabled
This commit is contained in:
parent
b14edb8876
commit
4714b3af67
@ -419,7 +419,8 @@ namespace MediaBrowser.Providers.Manager
|
|||||||
var type = _singularImages[i];
|
var type = _singularImages[i];
|
||||||
var image = GetFirstLocalImageInfoByType(images, type);
|
var image = GetFirstLocalImageInfoByType(images, type);
|
||||||
|
|
||||||
if (image is not null)
|
// Only use local images if we are not replacing and saving
|
||||||
|
if (image is not null && !(item.IsSaveLocalMetadataEnabled() && refreshOptions.ReplaceAllImages))
|
||||||
{
|
{
|
||||||
var currentImage = item.GetImageInfo(type, 0);
|
var currentImage = item.GetImageInfo(type, 0);
|
||||||
// if image file is stored with media, don't replace that later
|
// if image file is stored with media, don't replace that later
|
||||||
|
Loading…
x
Reference in New Issue
Block a user