Fix slow local image validation (#990)

* Check for local image directory existence to avoid tons of exceptions
This commit is contained in:
Claus Vium
2019-02-24 16:16:53 +01:00
committed by Bond-009
parent e281c79d6f
commit 2e9a3d45c2
2 changed files with 8 additions and 4 deletions

View File

@@ -92,10 +92,7 @@ namespace MediaBrowser.Providers.Manager
catch (Exception ex)
{
localImagesFailed = true;
if (!(item is IItemByName))
{
Logger.LogError(ex, "Error validating images for {0}", item.Path ?? item.Name ?? "Unknown name");
}
Logger.LogError(ex, "Error validating images for {0}", item.Path ?? item.Name ?? "Unknown name");
}
var metadataResult = new MetadataResult<TItemType>