Add option for downloading cover

This commit is contained in:
Michael Bucari-Tovo 2022-05-10 15:36:31 -06:00
parent 9a5d9f3867
commit 64eaa157e5
5 changed files with 975 additions and 944 deletions

View file

@ -71,12 +71,13 @@ namespace FileLiberator
// moves new files from temp dir to final dest
var movedAudioFile = moveFilesToBooksDir(libraryBook, entries);
DownloadCoverArt(libraryBook);
// decrypt failed
if (!movedAudioFile)
return new StatusHandler { "Cannot find final audio file after decryption" };
if (Configuration.Instance.DownloadCoverArt)
DownloadCoverArt(libraryBook);
libraryBook.Book.UserDefinedItem.BookStatus = LiberatedStatus.Liberated;
return new StatusHandler();
@ -130,6 +131,7 @@ namespace FileLiberator
// REAL WORK DONE HERE
var success = await Task.Run(abDownloader.Run);
return success;
}
finally