From 3766584e7369bded3e0df249023340d455a21268 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sat, 21 Nov 2015 00:51:47 -0500 Subject: [PATCH] update ConvertImageToLocal --- .../Library/LibraryManager.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/MediaBrowser.Server.Implementations/Library/LibraryManager.cs b/MediaBrowser.Server.Implementations/Library/LibraryManager.cs index fd9463e839..f27f35c486 100644 --- a/MediaBrowser.Server.Implementations/Library/LibraryManager.cs +++ b/MediaBrowser.Server.Implementations/Library/LibraryManager.cs @@ -2391,6 +2391,13 @@ namespace MediaBrowser.Server.Implementations.Library await _providerManagerFactory().SaveImage(item, image.Path, _dynamicImageResourcePool, image.Type, imageIndex, CancellationToken.None).ConfigureAwait(false); + var newImage = item.GetImageInfo(image.Type, imageIndex); + + if (newImage != null) + { + newImage.IsPlaceholder = image.IsPlaceholder; + } + await item.UpdateToRepository(ItemUpdateType.ImageUpdate, CancellationToken.None).ConfigureAwait(false); return item.GetImageInfo(image.Type, imageIndex);