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 48f6cd9 commit a5888d9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 17 deletions.
12 changes: 4 additions & 8 deletions LXHentai/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2492,20 +2492,20 @@ class LXHentai extends paperback_extensions_common_1.Source {
let status = 1; //completed, 1 = Ongoing
let artist = "";
let desc = $(".py-4.border-t.border-gray-200 > p:nth-last-child(2)").text();
creator = $("div:contains('Tác giả:')").next("a").text();
status = $("div:contains('Tình trạng:')")
creator = $("span:contains('Tác giả:')").next().text();
status = $("span:contains('Tình trạng:')")
.next()
.text()
.toLowerCase()
.includes("đã")
? 0
: 1;
for (const t of $("a", $("div:contains('Thể loại:')").next()).toArray()) {
for (const t of $("a", $("span:contains('Thể loại:')").next()).toArray()) {
const genre = $(t).text().trim();
const id = (_a = $(t).attr("href")) !== null && _a !== void 0 ? _a : genre;
tags.push(createTag({ label: genre, id }));
}
artist = $("div:contains('Nhóm dịch:')").next().text();
artist = $("span:contains('Nhóm dịch:')").next().text();
const image = $("div.cover-frame > .cover").css("background-image");
const bg = image === null || image === void 0 ? void 0 : image.replace("url(", "").replace(")", "").replace(/\"/gi, "").replace(/['"]+/g, "");
return createManga({
Expand Down Expand Up @@ -2538,10 +2538,6 @@ class LXHentai extends paperback_extensions_common_1.Source {
i++;
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]),
Expand Down
12 changes: 4 additions & 8 deletions LXHentai/source.js
Original file line number Diff line number Diff line change
Expand Up @@ -2492,20 +2492,20 @@ class LXHentai extends paperback_extensions_common_1.Source {
let status = 1; //completed, 1 = Ongoing
let artist = "";
let desc = $(".py-4.border-t.border-gray-200 > p:nth-last-child(2)").text();
creator = $("div:contains('Tác giả:')").next("a").text();
status = $("div:contains('Tình trạng:')")
creator = $("span:contains('Tác giả:')").next().text();
status = $("span:contains('Tình trạng:')")
.next()
.text()
.toLowerCase()
.includes("đã")
? 0
: 1;
for (const t of $("a", $("div:contains('Thể loại:')").next()).toArray()) {
for (const t of $("a", $("span:contains('Thể loại:')").next()).toArray()) {
const genre = $(t).text().trim();
const id = (_a = $(t).attr("href")) !== null && _a !== void 0 ? _a : genre;
tags.push(createTag({ label: genre, id }));
}
artist = $("div:contains('Nhóm dịch:')").next().text();
artist = $("span:contains('Nhóm dịch:')").next().text();
const image = $("div.cover-frame > .cover").css("background-image");
const bg = image === null || image === void 0 ? void 0 : image.replace("url(", "").replace(")", "").replace(/\"/gi, "").replace(/['"]+/g, "");
return createManga({
Expand Down Expand Up @@ -2538,10 +2538,6 @@ class LXHentai extends paperback_extensions_common_1.Source {
i++;
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]),
Expand Down
Loading

0 comments on commit a5888d9

Please sign in to comment.