don't keep retrying when metadata not found
This commit is contained in:
parent
3e23d32e62
commit
e08f5d5d61
|
@ -138,7 +138,7 @@ namespace MediaBrowser.Providers.Manager
|
|||
}
|
||||
}
|
||||
|
||||
var isFirstRefresh = GetLastRefreshDate(item) == default(DateTime);
|
||||
var isFirstRefresh = item.DateLastRefreshed == default(DateTime);
|
||||
|
||||
var beforeSaveResult = await BeforeSave(itemOfType, isFirstRefresh || refreshOptions.ReplaceAllMetadata || refreshOptions.MetadataRefreshMode == MetadataRefreshMode.FullRefresh || requiresRefresh, updateType).ConfigureAwait(false);
|
||||
updateType = updateType | beforeSaveResult;
|
||||
|
@ -193,11 +193,6 @@ namespace MediaBrowser.Providers.Manager
|
|||
lookupInfo.Year = result.ProductionYear;
|
||||
}
|
||||
|
||||
private DateTime GetLastRefreshDate(IHasMetadata item)
|
||||
{
|
||||
return item.DateLastRefreshed;
|
||||
}
|
||||
|
||||
protected async Task SaveItem(MetadataResult<TItemType> result, ItemUpdateType reason, CancellationToken cancellationToken)
|
||||
{
|
||||
if (result.Item.SupportsPeople && result.People != null)
|
||||
|
@ -652,7 +647,6 @@ namespace MediaBrowser.Providers.Manager
|
|||
}
|
||||
else
|
||||
{
|
||||
refreshResult.Failures++;
|
||||
Logger.Debug("{0} returned no metadata for {1}", providerName, logName);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user