Fix noble time (#743)

This commit is contained in:
Marcin Majewski
2024-02-02 04:26:53 +01:00
committed by GitHub
parent 211f30d5b2
commit 1068949aa5
+5 -6
View File
@@ -112,23 +112,22 @@ class NobleMTL implements Plugin.PluginBase {
loadedCheerio(".eplister")
.find("li")
.each(function () {
const chapterUrl = loadedCheerio(this).find("a").attr("href");
if (!chapterUrl) return;
const chapterName =
loadedCheerio(this).find(".epl-num").text() +
" - " +
loadedCheerio(this).find(".epl-title").text();
const releaseDate = loadedCheerio(this)
.find(".epl-date")
.text()
.trim();
.trim(); // Feb 25, 2024
const chapterUrl = loadedCheerio(this).find("a").attr("href");
if (!chapterUrl) return;
if (!releaseDate) return;
chapter.push({
name: chapterName,
releaseTime: releaseDate,
releaseTime: new Date(releaseDate).toISOString(),
url: chapterUrl,
});
});