Error handling on needs refresh
This commit is contained in:
parent
7faf2be79b
commit
1054994645
|
@ -153,9 +153,16 @@ namespace MediaBrowser.Server.Implementations.Providers
|
||||||
continue;
|
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));
|
currentTasks.Add(FetchAsync(provider, item, force, cancellationToken));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user