diff --git a/AaxDecrypter/AaxcDownloadConverter.cs b/AaxDecrypter/AaxcDownloadConverter.cs index 7438ec61..2944c9d7 100644 --- a/AaxDecrypter/AaxcDownloadConverter.cs +++ b/AaxDecrypter/AaxcDownloadConverter.cs @@ -230,7 +230,7 @@ namespace AaxDecrypter } catch (Exception ex) { - Serilog.Log.Logger.Error(ex, $"{nameof(Step5_CreateCue)}. FAILED"); + Serilog.Log.Logger.Error(ex, $"{nameof(Step6_CreateNfo)}. FAILED"); } return !isCanceled; } diff --git a/DtoImporterService/BookImporter.cs b/DtoImporterService/BookImporter.cs index 8d6bbd27..b2889b50 100644 --- a/DtoImporterService/BookImporter.cs +++ b/DtoImporterService/BookImporter.cs @@ -67,6 +67,9 @@ namespace DtoImporterService { var item = importItem.DtoItem; + //Add any subtitle after the title title. + var title = item.Title + (!string.IsNullOrWhiteSpace(item.Subtitle) ? $": {item.Subtitle}" : ""); + // absence of authors is very rare, but possible if (!item.Authors?.Any() ?? true) item.Authors = new[] { new Person { Name = "", Asin = null } }; @@ -102,7 +105,7 @@ namespace DtoImporterService var book = DbContext.Books.Add(new Book( new AudibleProductId(item.ProductId), - item.Title, + title, item.Description, item.LengthInMinutes, authors, diff --git a/FileLiberator/DownloadDecryptBook.cs b/FileLiberator/DownloadDecryptBook.cs index cc22ef7e..89934d4b 100644 --- a/FileLiberator/DownloadDecryptBook.cs +++ b/FileLiberator/DownloadDecryptBook.cs @@ -218,7 +218,7 @@ namespace FileLiberator public void Cancel() { - aaxcDownloader.Cancel(); + aaxcDownloader?.Cancel(); } } }