Add novel.ovh (#756)

* fix

* test

* fix
This commit is contained in:
Rider21
2024-02-07 20:51:25 +03:00
committed by GitHub
parent 1907814d87
commit db921e704f
12 changed files with 582 additions and 18 deletions
+4 -4
View File
@@ -66,13 +66,13 @@ class Smakolykytl implements Plugin.PluginBase {
"https://api.smakolykytl.site/api/user/projects/" + id + "/books",
);
const data = (await res.json()) as response;
data?.books?.forEach(
(volume) =>
volume?.chapters?.map((chapter) =>
data?.books?.forEach((volume) =>
volume?.chapters?.forEach((chapter) =>
chapters.push({
name: volume.title + " " + chapter.title,
releaseTime: dayjs(chapter.modifiedAt).format("LLL"),
url: this.site + "read/" + chapter.id,
releaseTime: dayjs(chapter.modifiedAt).format("LLL"),
chapterNumber: chapters.length + 1,
}),
),
);