Fix noble time (#743)
This commit is contained in:
@@ -112,23 +112,22 @@ class NobleMTL implements Plugin.PluginBase {
|
|||||||
loadedCheerio(".eplister")
|
loadedCheerio(".eplister")
|
||||||
.find("li")
|
.find("li")
|
||||||
.each(function () {
|
.each(function () {
|
||||||
|
const chapterUrl = loadedCheerio(this).find("a").attr("href");
|
||||||
|
if (!chapterUrl) return;
|
||||||
const chapterName =
|
const chapterName =
|
||||||
loadedCheerio(this).find(".epl-num").text() +
|
loadedCheerio(this).find(".epl-num").text() +
|
||||||
" - " +
|
" - " +
|
||||||
loadedCheerio(this).find(".epl-title").text();
|
loadedCheerio(this).find(".epl-title").text();
|
||||||
|
|
||||||
const releaseDate = loadedCheerio(this)
|
const releaseDate = loadedCheerio(this)
|
||||||
.find(".epl-date")
|
.find(".epl-date")
|
||||||
.text()
|
.text()
|
||||||
.trim();
|
.trim(); // Feb 25, 2024
|
||||||
|
|
||||||
const chapterUrl = loadedCheerio(this).find("a").attr("href");
|
if (!releaseDate) return;
|
||||||
|
|
||||||
if (!chapterUrl) return;
|
|
||||||
|
|
||||||
chapter.push({
|
chapter.push({
|
||||||
name: chapterName,
|
name: chapterName,
|
||||||
releaseTime: releaseDate,
|
releaseTime: new Date(releaseDate).toISOString(),
|
||||||
url: chapterUrl,
|
url: chapterUrl,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user