This commit is contained in:
Moustapha Kodjo Amadou 2026-01-26 17:30:07 +01:00
parent d5aecf66dc
commit ee41024a4f

View file

@ -24,15 +24,15 @@ Future<(String, EpubNovel?)> getHtmlContent(
} }
if (chapter.archivePath != null && chapter.archivePath!.isNotEmpty) { if (chapter.archivePath != null && chapter.archivePath!.isNotEmpty) {
try { try {
final okk = await parseEpubFromPath( final book = await parseEpubFromPath(
epubPath: chapter.archivePath!, epubPath: chapter.archivePath!,
fullData: true, fullData: true,
); );
String htmlContent = ""; String htmlContent = "";
for (var subChapter in okk.chapters) { for (var subChapter in book.chapters) {
htmlContent += "\n<hr/>\n${subChapter.content}"; htmlContent += "\n<hr/>\n${subChapter.content}";
} }
result = (_buildHtml(htmlContent), okk); result = (_buildHtml(htmlContent), book);
} catch (_) {} } catch (_) {}
result ??= (_buildHtml("Local epub file not found!"), null); result ??= (_buildHtml("Local epub file not found!"), null);