diff --git a/lightnovelworld.js b/lightnovelworld.js index 905db3a..393c382 100644 --- a/lightnovelworld.js +++ b/lightnovelworld.js @@ -85,7 +85,7 @@ class ligntnovelworld { } - return chapters; + return { chapters: chapters}; } async findChapterPages(chapterId) { diff --git a/novelbin.js b/novelbin.js index 2fe477a..bfc23d9 100644 --- a/novelbin.js +++ b/novelbin.js @@ -78,7 +78,7 @@ class NovelBin { }); }); - return chapters; + return { chapters: chapters }; } async findChapterPages(chapterId) { diff --git a/novelfire.js b/novelfire.js index 9fe2d6c..031dd71 100644 --- a/novelfire.js +++ b/novelfire.js @@ -82,12 +82,14 @@ class novelfire { } ); - return options.map(o => ({ - id: `https://novelfire.net/book/${bookId}/chapter-${o.chapter}`, - title: o.title, - chapter: o.chapter, - language: "en" - })); + return { + chapters: options.map(o => ({ + id: `https://novelfire.net/book/${bookId}/chapter-${o.chapter}`, + title: o.title, + chapter: o.chapter, + language: "en" + })) + }; } async findChapterPages(chapterId) {