handle people image failures

This commit is contained in:
Luke Pulverenti 2016-03-04 23:17:02 -05:00
parent ca83644e1c
commit 63efe6ae98

View File

@ -301,10 +301,17 @@ namespace MediaBrowser.Providers.Manager
{
if (ServerConfigurationManager.Configuration.DownloadImagesInAdvance)
{
await ProviderManager.SaveImage(personEntity, imageUrl, null, ImageType.Primary, null, cancellationToken).ConfigureAwait(false);
}
else
try
{
await ProviderManager.SaveImage(personEntity, imageUrl, null, ImageType.Primary, null, cancellationToken).ConfigureAwait(false);
return;
}
catch (Exception ex)
{
Logger.ErrorException("Error in AddPersonImage", ex);
}
}
personEntity.SetImage(new ItemImageInfo
{
Path = imageUrl,
@ -312,7 +319,6 @@ namespace MediaBrowser.Providers.Manager
IsPlaceholder = true
}, 0);
}
}
private readonly Task _cachedTask = Task.FromResult(true);
protected virtual Task AfterMetadataRefresh(TItemType item, MetadataRefreshOptions refreshOptions, CancellationToken cancellationToken)