ehentai: handle thumbnail labeling again

This commit is contained in:
Pacalini
2024-10-29 22:18:13 +08:00
parent c8660de48a
commit d4e4384b91

View File

@@ -700,7 +700,8 @@ class Ehentai extends ComicSource {
}); });
images.push(...document.querySelectorAll("div.gdtl > a > img").map((e) => e.attributes["src"])) images.push(...document.querySelectorAll("div.gdtl > a > img").map((e) => e.attributes["src"]))
if(images.length === 0) { if(images.length === 0) {
for(let e of document.querySelectorAll("div.gt100 > a > div")) { for(let e of document.querySelectorAll("div.gt100 > a > div")
.map(e => e.children.length === 0 ? e : e.children[0])) {
let style = e.attributes['style']; let style = e.attributes['style'];
let r = style.split("background:transparent url(")[1] let r = style.split("background:transparent url(")[1]
let url = r.split(")")[0] let url = r.split(")")[0]