Skip to content

Commit

Permalink
Merge pull request #751 from Mbucari/master
Browse files Browse the repository at this point in the history
Minor Bug Fixes
  • Loading branch information
rmcrackan authored Sep 18, 2023
2 parents 8326389 + 9152e12 commit 02dbf8a
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Source/ApplicationServices/LibraryCommands.cs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public static async Task<List<LibraryBook>> FindInactiveBooks(Func<Account, Task
| LibraryOptions.ResponseGroupOptions.Contributors | LibraryOptions.ResponseGroupOptions.ProvidedReview
| LibraryOptions.ResponseGroupOptions.ProductPlans | LibraryOptions.ResponseGroupOptions.Series
| LibraryOptions.ResponseGroupOptions.CategoryLadders | LibraryOptions.ResponseGroupOptions.ProductExtendedAttrs
| LibraryOptions.ResponseGroupOptions.PdfUrl,
| LibraryOptions.ResponseGroupOptions.PdfUrl | LibraryOptions.ResponseGroupOptions.OriginAsin,
ImageSizes = LibraryOptions.ImageSizeOptions._500 | LibraryOptions.ImageSizeOptions._1215
};
var importItems = await scanAccountsAsync(apiExtendedfunc, accounts, libraryOptions);
Expand Down
11 changes: 9 additions & 2 deletions Source/FileLiberator/DownloadDecryptBook.cs
Original file line number Diff line number Diff line change
Expand Up @@ -375,8 +375,15 @@ private void AaxcDownloader_RetrievedCoverArt(object _, byte[] e)
{
if (Configuration.Instance.AllowLibationFixup)
{
e = OnRequestCoverArt();
abDownloader.SetCoverArt(e);
try
{
e = OnRequestCoverArt();
abDownloader.SetCoverArt(e);
}
catch (Exception ex)
{
Serilog.Log.Logger.Error(ex, "Failed to retrieve cover art from server.");
}
}

if (e is not null)
Expand Down
2 changes: 1 addition & 1 deletion Source/LibationAvalonia/ViewModels/ProcessBookViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ private void UnlinkProcessable(Processable processable)
private byte[] AudioDecodable_RequestCoverArt(object sender, EventArgs e)
{
var quality
= Configuration.Instance.FileDownloadQuality == Configuration.DownloadQuality.High
= Configuration.Instance.FileDownloadQuality == Configuration.DownloadQuality.High && LibraryBook.Book.PictureLarge is not null
? new PictureDefinition(LibraryBook.Book.PictureLarge, PictureSize.Native)
: new PictureDefinition(LibraryBook.Book.PictureId, PictureSize._500x500);

Expand Down
2 changes: 1 addition & 1 deletion Source/LibationWinForms/ProcessQueue/ProcessBook.cs
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ private void updateBookInfo()
private byte[] AudioDecodable_RequestCoverArt(object sender, EventArgs e)
{
var quality
= Configuration.Instance.FileDownloadQuality == Configuration.DownloadQuality.High
= Configuration.Instance.FileDownloadQuality == Configuration.DownloadQuality.High && LibraryBook.Book.PictureLarge is not null
? new PictureDefinition(LibraryBook.Book.PictureLarge, PictureSize.Native)
: new PictureDefinition(LibraryBook.Book.PictureId, PictureSize._500x500);

Expand Down

0 comments on commit 02dbf8a

Please sign in to comment.