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) {
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<hr/>\n${subChapter.content}";
}
result = (_buildHtml(htmlContent), okk);
result = (_buildHtml(htmlContent), book);
} catch (_) {}
result ??= (_buildHtml("Local epub file not found!"), null);