Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
huynlx committed Sep 29, 2024
1 parent 881f148 commit 48f6cd9
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 7 deletions.
12 changes: 9 additions & 3 deletions LXHentai/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2453,6 +2453,9 @@ class LXHentai extends paperback_extensions_common_1.Source {
else if (timeAgo.includes("ngày")) {
time = new Date(Date.now() - trimmed * 86400000);
}
else if (timeAgo.includes("tháng")) {
time = new Date(Date.now() - trimmed * 30 * 86400000); // approx. 30 days per month
}
else if (timeAgo.includes("năm")) {
time = new Date(Date.now() - trimmed * 31556952000);
}
Expand Down Expand Up @@ -2533,15 +2536,19 @@ class LXHentai extends paperback_extensions_common_1.Source {
.toArray()
.reverse()) {
i++;
let time = $(".hidden > span", obj).last().text();
let time = $(".hidden > span.timeago", obj).attr("datetime");
let view = $(".hidden > span", obj).first().text();
console.log("cc", {
time,
view,
});
chapters.push(createChapter({
id: "https://lxmanga.click" + $(obj).attr("href"),
chapNum: parseFloat($(".text-ellipsis", obj).text().split(" ")[1]),
name: "",
mangaId: mangaId,
langCode: paperback_extensions_common_1.LanguageCode.VIETNAMESE,
time: this.convertTime(time),
time: new Date(time),
group: view + " lượt xem",
}));
}
Expand All @@ -2560,7 +2567,6 @@ class LXHentai extends paperback_extensions_common_1.Source {
const list = $(".text-center > #image-container").toArray();
for (let obj of list) {
let link = $(obj).attr("data-src");
console.log("🚀 ⮕ LXHentai ⮕ link:", link);
pages.push(encodeURI(link));
}
const chapterDetails = createChapterDetails({
Expand Down
12 changes: 9 additions & 3 deletions LXHentai/source.js
Original file line number Diff line number Diff line change
Expand Up @@ -2453,6 +2453,9 @@ class LXHentai extends paperback_extensions_common_1.Source {
else if (timeAgo.includes("ngày")) {
time = new Date(Date.now() - trimmed * 86400000);
}
else if (timeAgo.includes("tháng")) {
time = new Date(Date.now() - trimmed * 30 * 86400000); // approx. 30 days per month
}
else if (timeAgo.includes("năm")) {
time = new Date(Date.now() - trimmed * 31556952000);
}
Expand Down Expand Up @@ -2533,15 +2536,19 @@ class LXHentai extends paperback_extensions_common_1.Source {
.toArray()
.reverse()) {
i++;
let time = $(".hidden > span", obj).last().text();
let time = $(".hidden > span.timeago", obj).attr("datetime");
let view = $(".hidden > span", obj).first().text();
console.log("cc", {
time,
view,
});
chapters.push(createChapter({
id: "https://lxmanga.click" + $(obj).attr("href"),
chapNum: parseFloat($(".text-ellipsis", obj).text().split(" ")[1]),
name: "",
mangaId: mangaId,
langCode: paperback_extensions_common_1.LanguageCode.VIETNAMESE,
time: this.convertTime(time),
time: new Date(time),
group: view + " lượt xem",
}));
}
Expand All @@ -2560,7 +2567,6 @@ class LXHentai extends paperback_extensions_common_1.Source {
const list = $(".text-center > #image-container").toArray();
for (let obj of list) {
let link = $(obj).attr("data-src");
console.log("🚀 ⮕ LXHentai ⮕ link:", link);
pages.push(encodeURI(link));
}
const chapterDetails = createChapterDetails({
Expand Down
3 changes: 3 additions & 0 deletions NetTruyen/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -746,6 +746,9 @@ class Parser {
else if (timeAgo.includes("ngày")) {
time = new Date(Date.now() - trimmed * 86400000);
}
else if (timeAgo.includes("tháng")) {
time = new Date(Date.now() - trimmed * 30 * 86400000); // approx. 30 days per month
}
else if (timeAgo.includes("năm")) {
time = new Date(Date.now() - trimmed * 31556952000);
}
Expand Down
3 changes: 3 additions & 0 deletions NetTruyen/source.js
Original file line number Diff line number Diff line change
Expand Up @@ -746,6 +746,9 @@ class Parser {
else if (timeAgo.includes("ngày")) {
time = new Date(Date.now() - trimmed * 86400000);
}
else if (timeAgo.includes("tháng")) {
time = new Date(Date.now() - trimmed * 30 * 86400000); // approx. 30 days per month
}
else if (timeAgo.includes("năm")) {
time = new Date(Date.now() - trimmed * 31556952000);
}
Expand Down
2 changes: 1 addition & 1 deletion versioning.json

Large diffs are not rendered by default.

0 comments on commit 48f6cd9

Please sign in to comment.