Fix: lightnovelpub + lightnovelworld replaced ; with + (#818)

* replaced ; with +

* changed version
This commit is contained in:
Patrick Loser
2024-03-03 04:12:20 +01:00
committed by GitHub
parent e10e69f90a
commit aa129fdfed
2 changed files with 66 additions and 64 deletions
+4 -3
View File
@@ -7,7 +7,7 @@ import dayjs from "dayjs";
class LightNovelPub implements Plugin.PagePlugin {
id = "lightnovelpub";
name = "LightNovelPub";
version = "1.0.0";
version = "1.0.1";
icon = "src/en/lightnovelpub/icon.png";
site = "https://www.lightnovelpub.com/";
headers = {
@@ -92,7 +92,7 @@ class LightNovelPub implements Plugin.PagePlugin {
const chapterName =
'Chapter ' +
loadedCheerio(this).find('.chapter-no').text().trim() +
' - ';
' - ' +
loadedCheerio(this).find('.chapter-title').text().trim();
const releaseDate = loadedCheerio(this)
@@ -106,7 +106,8 @@ class LightNovelPub implements Plugin.PagePlugin {
name: chapterName,
path: chapterUrl,
releaseTime: dayjs(releaseDate).toISOString(),
})});
})
});
const chapters = chapter;
return { chapters };
}
+4 -3
View File
@@ -8,7 +8,7 @@ class LightNovelWorld implements Plugin.PagePlugin {
id = "lightnovelworld";
name = "LightNovelWorld";
site = "https://www.webnovelworld.org/";
version = "1.0.0";
version = "1.0.1";
icon = "src/en/lightnovelworld/icon.png";
headers = {
Accept: "application/json",
@@ -92,7 +92,7 @@ class LightNovelWorld implements Plugin.PagePlugin {
const chapterName =
'Chapter ' +
loadedCheerio(this).find('.chapter-no').text().trim() +
' - ';
' - ' +
loadedCheerio(this).find('.chapter-title').text().trim();
const releaseDate = loadedCheerio(this)
@@ -106,7 +106,8 @@ class LightNovelWorld implements Plugin.PagePlugin {
name: chapterName,
path: chapterUrl,
releaseTime: dayjs(releaseDate).toISOString(),
})});
})
});
const chapters = chapter;
return { chapters };
}