Error handling on needs refresh

This commit is contained in:
Luke Pulverenti 2013-06-11 14:31:28 -04:00
parent 7faf2be79b
commit 1054994645

View File

@ -153,9 +153,16 @@ namespace MediaBrowser.Server.Implementations.Providers
continue;
}
if (!force && !provider.NeedsRefresh(item))
try
{
continue;
if (!force && !provider.NeedsRefresh(item))
{
continue;
}
}
catch (Exception ex)
{
_logger.Error("Error determining NeedsRefresh for {0}", ex, item.Path);
}
currentTasks.Add(FetchAsync(provider, item, force, cancellationToken));