|
|
|
@ -359,12 +359,13 @@ namespace MediaBrowser.Providers.Manager
|
|
|
|
|
private void ClearImages(IHasImages item, ImageType type)
|
|
|
|
|
{
|
|
|
|
|
var deleted = false;
|
|
|
|
|
var deletedImages = new List<ItemImageInfo>();
|
|
|
|
|
|
|
|
|
|
foreach (var image in item.GetImages(type).ToList())
|
|
|
|
|
{
|
|
|
|
|
if (!image.IsLocalFile)
|
|
|
|
|
{
|
|
|
|
|
// TODO: Need to get this image removed
|
|
|
|
|
deletedImages.Add(image);
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -384,6 +385,11 @@ namespace MediaBrowser.Providers.Manager
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
foreach (var image in deletedImages)
|
|
|
|
|
{
|
|
|
|
|
item.RemoveImage(image);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (deleted)
|
|
|
|
|
{
|
|
|
|
|
item.ValidateImages(new DirectoryService(_logger, _fileSystem));
|
|
|
|
|