Improve updating following and fix potential crash.

This commit is contained in:
2025-10-06 10:17:01 +08:00
parent c438a84537
commit e0ea449c17
4 changed files with 216 additions and 13 deletions

View File

@@ -759,6 +759,7 @@ class ComicSourceParser {
LoadComicFunc? _parseLoadComicFunc() {
return (id) async {
try {
print("Loading comic $id from source $_key. Stacktrace:\n${StackTrace.current}");
var res = await JsEngine().runCode("""
ComicSource.sources.$_key.comic.loadInfo(${jsonEncode(id)})
""");