From 25d586366f6c056664c494ffc44996e323c3a03f Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Tue, 29 Dec 2015 21:42:17 -0500 Subject: [PATCH] handle non-local images in ClearImages --- MediaBrowser.Providers/Manager/ItemImageProvider.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/MediaBrowser.Providers/Manager/ItemImageProvider.cs b/MediaBrowser.Providers/Manager/ItemImageProvider.cs index 9932df2bc6..19f575d0d6 100644 --- a/MediaBrowser.Providers/Manager/ItemImageProvider.cs +++ b/MediaBrowser.Providers/Manager/ItemImageProvider.cs @@ -362,6 +362,12 @@ namespace MediaBrowser.Providers.Manager foreach (var image in item.GetImages(type).ToList()) { + if (!image.IsLocalFile) + { + // TODO: Need to get this image removed + continue; + } + // Delete the source file var currentFile = new FileInfo(image.Path);