diff --git a/Source/AaxDecrypter/AaxcDownloadConvertBase.cs b/Source/AaxDecrypter/AaxcDownloadConvertBase.cs index 42bf0ac8..f96dfeea 100644 --- a/Source/AaxDecrypter/AaxcDownloadConvertBase.cs +++ b/Source/AaxDecrypter/AaxcDownloadConvertBase.cs @@ -103,8 +103,8 @@ namespace AaxDecrypter OnInitialized(); OnRetrievedTitle(AaxFile.AppleTags.TitleSansUnabridged); - OnRetrievedAuthors(AaxFile.AppleTags.FirstAuthor ?? "[unknown]"); - OnRetrievedNarrators(AaxFile.AppleTags.Narrator ?? "[unknown]"); + OnRetrievedAuthors(AaxFile.AppleTags.FirstAuthor); + OnRetrievedNarrators(AaxFile.AppleTags.Narrator); OnRetrievedCoverArt(AaxFile.AppleTags.Cover); return !IsCanceled; diff --git a/Source/FileLiberator/AudioDecodable.cs b/Source/FileLiberator/AudioDecodable.cs index d29d8e85..d8213b53 100644 --- a/Source/FileLiberator/AudioDecodable.cs +++ b/Source/FileLiberator/AudioDecodable.cs @@ -19,21 +19,24 @@ namespace FileLiberator protected void OnTitleDiscovered(object _, string title) { Serilog.Log.Logger.Debug("Event fired {@DebugInfo}", new { Name = nameof(TitleDiscovered), Title = title }); - TitleDiscovered?.Invoke(this, title); + if (title != null) + TitleDiscovered?.Invoke(this, title); } protected void OnAuthorsDiscovered(string authors) => OnAuthorsDiscovered(null, authors); protected void OnAuthorsDiscovered(object _, string authors) { Serilog.Log.Logger.Debug("Event fired {@DebugInfo}", new { Name = nameof(AuthorsDiscovered), Authors = authors }); - AuthorsDiscovered?.Invoke(this, authors); + if (authors != null) + AuthorsDiscovered?.Invoke(this, authors); } protected void OnNarratorsDiscovered(string narrators) => OnNarratorsDiscovered(null, narrators); protected void OnNarratorsDiscovered(object _, string narrators) { Serilog.Log.Logger.Debug("Event fired {@DebugInfo}", new { Name = nameof(NarratorsDiscovered), Narrators = narrators }); - NarratorsDiscovered?.Invoke(this, narrators); + if (narrators != null) + NarratorsDiscovered?.Invoke(this, narrators); } protected byte[] OnRequestCoverArt() diff --git a/Source/FileLiberator/DownloadDecryptBook.cs b/Source/FileLiberator/DownloadDecryptBook.cs index 0f92ce8c..f6a70deb 100644 --- a/Source/FileLiberator/DownloadDecryptBook.cs +++ b/Source/FileLiberator/DownloadDecryptBook.cs @@ -121,8 +121,6 @@ namespace FileLiberator } } - - private async Task downloadAudiobookAsync(AudibleApi.Api api, Configuration config, DownloadOptions dlOptions) { var outFileName = AudibleFileStorage.Audio.GetInProgressFilename(dlOptions.LibraryBookDto, dlOptions.OutputFormat.ToString().ToLower());