mirror of
https://github.com/kodjodevf/mangayomi.git
synced 2026-04-21 16:01:58 +00:00
rename
This commit is contained in:
parent
d5aecf66dc
commit
ee41024a4f
1 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue