Fix getPageList for JS extension
This commit is contained in:
parent
4f0613daa8
commit
931100fadf
2 changed files with 2 additions and 1 deletions
|
|
@ -105,7 +105,7 @@ var extention = new DefaultExtension();
|
|||
'jsonStringify(() => extention.getPageList(`$url`))')))
|
||||
.stringResult;
|
||||
|
||||
return jsonDecode(res);
|
||||
return (jsonDecode(res) as List).map((e) => e.toString()).toList();
|
||||
}
|
||||
|
||||
Future<List<Video>> getVideoList(String url) async {
|
||||
|
|
|
|||
|
|
@ -73,6 +73,7 @@ Future<GetChapterPagesModel> getChapterPages(
|
|||
'main', [$MSource.wrap(source.toMSource())]);
|
||||
pageUrls = (await (res as MProvider).getPageList(chapter.url!));
|
||||
} else {
|
||||
|
||||
pageUrls = await JsExtensionService(source).getPageList(chapter.url!);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue