Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
huynlx committed Sep 30, 2024
1 parent b521efa commit 1d71133
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions LXHentai/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,7 @@ class LXHentai extends paperback_extensions_common_1.Source {
const request = createRequestObject({
url: query.title
? `https://lxmanga.click/tim-kiem?sort=-updated_at&filter[name]=${encodeURI(query.title)}&filter[status]=2,1&page=${page}`
: `${tags[0]}&p=${page}`,
: `https://lxmanga.click/the-loai/${tags[0]}?page=${page}`,
method: "GET",
});
const data = yield this.requestManager.schedule(request, 1);
Expand All @@ -777,7 +777,7 @@ class LXHentai extends paperback_extensions_common_1.Source {
const $ = this.cheerio.load(response.data);
const arrayTags = [];
//the loai
for (const tag of $(".col-sm-3 a", "#showTheLoai").toArray()) {
for (const tag of $("a", ".absolute.w-full.text-black").toArray()) {
const label = $(tag).text().trim();
const id = (_a = "https://lxmanga.click" + $(tag).attr("href")) !== null && _a !== void 0 ? _a : label;
if (!id || !label)
Expand Down
4 changes: 2 additions & 2 deletions LXHentai/source.js
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,7 @@ class LXHentai extends paperback_extensions_common_1.Source {
const request = createRequestObject({
url: query.title
? `https://lxmanga.click/tim-kiem?sort=-updated_at&filter[name]=${encodeURI(query.title)}&filter[status]=2,1&page=${page}`
: `${tags[0]}&p=${page}`,
: `https://lxmanga.click/the-loai/${tags[0]}?page=${page}`,
method: "GET",
});
const data = yield this.requestManager.schedule(request, 1);
Expand All @@ -777,7 +777,7 @@ class LXHentai extends paperback_extensions_common_1.Source {
const $ = this.cheerio.load(response.data);
const arrayTags = [];
//the loai
for (const tag of $(".col-sm-3 a", "#showTheLoai").toArray()) {
for (const tag of $("a", ".absolute.w-full.text-black").toArray()) {
const label = $(tag).text().trim();
const id = (_a = "https://lxmanga.click" + $(tag).attr("href")) !== null && _a !== void 0 ? _a : label;
if (!id || !label)
Expand Down
Loading

0 comments on commit 1d71133

Please sign in to comment.