diff --git a/lib/services/get_html_content.dart b/lib/services/get_html_content.dart index 03af3e86..19f13b38 100644 --- a/lib/services/get_html_content.dart +++ b/lib/services/get_html_content.dart @@ -24,15 +24,15 @@ Future<(String, EpubNovel?)> getHtmlContent( } if (chapter.archivePath != null && chapter.archivePath!.isNotEmpty) { try { - final okk = await parseEpubFromPath( + final book = await parseEpubFromPath( epubPath: chapter.archivePath!, fullData: true, ); String htmlContent = ""; - for (var subChapter in okk.chapters) { + for (var subChapter in book.chapters) { htmlContent += "\n
\n${subChapter.content}"; } - result = (_buildHtml(htmlContent), okk); + result = (_buildHtml(htmlContent), book); } catch (_) {} result ??= (_buildHtml("Local epub file not found!"), null);