Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
OnlyFart committed Sep 27, 2024
1 parent 58ee3d4 commit bac68e2
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions Core/Logic/Getters/BookmateGetter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,13 @@ public override async Task<Book> 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);
}
}
}

Expand Down

0 comments on commit bac68e2

Please sign in to comment.