commit
02dbf8aad0
@ -126,7 +126,7 @@ namespace ApplicationServices
|
|||||||
| LibraryOptions.ResponseGroupOptions.Contributors | LibraryOptions.ResponseGroupOptions.ProvidedReview
|
| LibraryOptions.ResponseGroupOptions.Contributors | LibraryOptions.ResponseGroupOptions.ProvidedReview
|
||||||
| LibraryOptions.ResponseGroupOptions.ProductPlans | LibraryOptions.ResponseGroupOptions.Series
|
| LibraryOptions.ResponseGroupOptions.ProductPlans | LibraryOptions.ResponseGroupOptions.Series
|
||||||
| LibraryOptions.ResponseGroupOptions.CategoryLadders | LibraryOptions.ResponseGroupOptions.ProductExtendedAttrs
|
| LibraryOptions.ResponseGroupOptions.CategoryLadders | LibraryOptions.ResponseGroupOptions.ProductExtendedAttrs
|
||||||
| LibraryOptions.ResponseGroupOptions.PdfUrl,
|
| LibraryOptions.ResponseGroupOptions.PdfUrl | LibraryOptions.ResponseGroupOptions.OriginAsin,
|
||||||
ImageSizes = LibraryOptions.ImageSizeOptions._500 | LibraryOptions.ImageSizeOptions._1215
|
ImageSizes = LibraryOptions.ImageSizeOptions._500 | LibraryOptions.ImageSizeOptions._1215
|
||||||
};
|
};
|
||||||
var importItems = await scanAccountsAsync(apiExtendedfunc, accounts, libraryOptions);
|
var importItems = await scanAccountsAsync(apiExtendedfunc, accounts, libraryOptions);
|
||||||
|
|||||||
@ -374,10 +374,17 @@ namespace FileLiberator
|
|||||||
private void AaxcDownloader_RetrievedCoverArt(object _, byte[] e)
|
private void AaxcDownloader_RetrievedCoverArt(object _, byte[] e)
|
||||||
{
|
{
|
||||||
if (Configuration.Instance.AllowLibationFixup)
|
if (Configuration.Instance.AllowLibationFixup)
|
||||||
|
{
|
||||||
|
try
|
||||||
{
|
{
|
||||||
e = OnRequestCoverArt();
|
e = OnRequestCoverArt();
|
||||||
abDownloader.SetCoverArt(e);
|
abDownloader.SetCoverArt(e);
|
||||||
}
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
Serilog.Log.Logger.Error(ex, "Failed to retrieve cover art from server.");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (e is not null)
|
if (e is not null)
|
||||||
OnCoverImageDiscovered(e);
|
OnCoverImageDiscovered(e);
|
||||||
|
|||||||
@ -265,7 +265,7 @@ namespace LibationAvalonia.ViewModels
|
|||||||
private byte[] AudioDecodable_RequestCoverArt(object sender, EventArgs e)
|
private byte[] AudioDecodable_RequestCoverArt(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
var quality
|
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.PictureLarge, PictureSize.Native)
|
||||||
: new PictureDefinition(LibraryBook.Book.PictureId, PictureSize._500x500);
|
: new PictureDefinition(LibraryBook.Book.PictureId, PictureSize._500x500);
|
||||||
|
|
||||||
|
|||||||
@ -250,7 +250,7 @@ namespace LibationWinForms.ProcessQueue
|
|||||||
private byte[] AudioDecodable_RequestCoverArt(object sender, EventArgs e)
|
private byte[] AudioDecodable_RequestCoverArt(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
var quality
|
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.PictureLarge, PictureSize.Native)
|
||||||
: new PictureDefinition(LibraryBook.Book.PictureId, PictureSize._500x500);
|
: new PictureDefinition(LibraryBook.Book.PictureId, PictureSize._500x500);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user