diff --git a/Core/Logic/Getters/BookmateGetter.cs b/Core/Logic/Getters/BookmateGetter.cs index 1dd6c05..f19abeb 100644 --- a/Core/Logic/Getters/BookmateGetter.cs +++ b/Core/Logic/Getters/BookmateGetter.cs @@ -55,11 +55,13 @@ public override async Task Get(Uri url) { if (path == "comicbooks") { book.Chapters = await FillChaptersComic(bookResponse); } else { - var originalBook = await GetEpubFile(bookResponse); - book.Chapters = await FillChaptersFromEpub(originalBook); - - if (Config.Options.HasAdditionalType(AdditionalTypeEnum.Books)) { - book.AdditionalFiles.Add(AdditionalTypeEnum.Books, originalBook); + var textBook = await GetEpubFile(bookResponse); + if (textBook != default) { + book.Chapters = await FillChaptersFromEpub(textBook); + + if (Config.Options.HasAdditionalType(AdditionalTypeEnum.Books)) { + book.AdditionalFiles.Add(AdditionalTypeEnum.Books, textBook); + } } }