Remove "download images in advance" option
This commit is contained in:
parent
ecadde1e18
commit
ba03ed65fe
|
@ -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; }
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user