Merge pull request #40 from Mbucari/master

Addressed Issue #37 and minor corrections
This commit is contained in:
rmcrackan 2021-07-02 23:48:44 -04:00 committed by GitHub
commit ef5b14a929
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 3 deletions

View File

@ -230,7 +230,7 @@ namespace AaxDecrypter
} }
catch (Exception ex) catch (Exception ex)
{ {
Serilog.Log.Logger.Error(ex, $"{nameof(Step5_CreateCue)}. FAILED"); Serilog.Log.Logger.Error(ex, $"{nameof(Step6_CreateNfo)}. FAILED");
} }
return !isCanceled; return !isCanceled;
} }

View File

@ -67,6 +67,9 @@ namespace DtoImporterService
{ {
var item = importItem.DtoItem; 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 // absence of authors is very rare, but possible
if (!item.Authors?.Any() ?? true) if (!item.Authors?.Any() ?? true)
item.Authors = new[] { new Person { Name = "", Asin = null } }; item.Authors = new[] { new Person { Name = "", Asin = null } };
@ -102,7 +105,7 @@ namespace DtoImporterService
var book = DbContext.Books.Add(new Book( var book = DbContext.Books.Add(new Book(
new AudibleProductId(item.ProductId), new AudibleProductId(item.ProductId),
item.Title, title,
item.Description, item.Description,
item.LengthInMinutes, item.LengthInMinutes,
authors, authors,

View File

@ -218,7 +218,7 @@ namespace FileLiberator
public void Cancel() public void Cancel()
{ {
aaxcDownloader.Cancel(); aaxcDownloader?.Cancel();
} }
} }
} }