mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-07 14:27:10 -04:00
handle people image failures
This commit is contained in:
parent
ca83644e1c
commit
63efe6ae98
@ -301,10 +301,17 @@ namespace MediaBrowser.Providers.Manager
|
|||||||
{
|
{
|
||||||
if (ServerConfigurationManager.Configuration.DownloadImagesInAdvance)
|
if (ServerConfigurationManager.Configuration.DownloadImagesInAdvance)
|
||||||
{
|
{
|
||||||
await ProviderManager.SaveImage(personEntity, imageUrl, null, ImageType.Primary, null, cancellationToken).ConfigureAwait(false);
|
try
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
|
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
|
personEntity.SetImage(new ItemImageInfo
|
||||||
{
|
{
|
||||||
Path = imageUrl,
|
Path = imageUrl,
|
||||||
@ -312,7 +319,6 @@ namespace MediaBrowser.Providers.Manager
|
|||||||
IsPlaceholder = true
|
IsPlaceholder = true
|
||||||
}, 0);
|
}, 0);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
private readonly Task _cachedTask = Task.FromResult(true);
|
private readonly Task _cachedTask = Task.FromResult(true);
|
||||||
protected virtual Task AfterMetadataRefresh(TItemType item, MetadataRefreshOptions refreshOptions, CancellationToken cancellationToken)
|
protected virtual Task AfterMetadataRefresh(TItemType item, MetadataRefreshOptions refreshOptions, CancellationToken cancellationToken)
|
||||||
|
Loading…
Reference in New Issue
Block a user