Remove "download images in advance" option

This commit is contained in:
ferferga 2020-05-27 19:13:41 +02:00
parent ecadde1e18
commit ba03ed65fe
3 changed files with 10 additions and 24 deletions

View File

@ -12,7 +12,6 @@ namespace MediaBrowser.Model.Configuration
public bool EnableRealtimeMonitor { get; set; }
public bool EnableChapterImageExtraction { get; set; }
public bool ExtractChapterImagesDuringLibraryScan { get; set; }
public bool DownloadImagesInAdvance { get; set; }
public MediaPathInfo[] PathInfos { get; set; }
public bool SaveLocalMetadata { get; set; }

View File

@ -495,17 +495,7 @@ namespace MediaBrowser.Providers.Manager
}
}
if (libraryOptions.DownloadImagesInAdvance)
{
return false;
}
//if (!item.IsSaveLocalMetadataEnabled())
//{
// return true;
//}
return true;
return false;
}
private void SaveImageStub(BaseItem item, ImageType imageType, IEnumerable<string> urls)

View File

@ -252,18 +252,15 @@ namespace MediaBrowser.Providers.Manager
private void AddPersonImage(Person personEntity, LibraryOptions libraryOptions, string imageUrl, CancellationToken cancellationToken)
{
//if (libraryOptions.DownloadImagesInAdvance)
//{
// try
// {
// await ProviderManager.SaveImage(personEntity, imageUrl, ImageType.Primary, null, cancellationToken).ConfigureAwait(false);
// return;
// }
// catch (Exception ex)
// {
// Logger.LogError(ex, "Error in AddPersonImage");
// }
//}
try
{
await ProviderManager.SaveImage(personEntity, imageUrl, ImageType.Primary, null, cancellationToken).ConfigureAwait(false);
return;
}
catch (Exception ex)
{
Logger.LogError(ex, "Error in AddPersonImage");
}
personEntity.SetImage(new ItemImageInfo
{