mirror of
https://github.com/kodjodevf/mangayomi-extensions.git
synced 2026-02-14 02:41:39 +00:00
webtoons: Remove cover extraction to keep using thumbnail from popular/latest
This commit is contained in:
@@ -133,12 +133,7 @@ class DefaultExtension extends MProvider {
|
|||||||
const res = await new Client().get(url);
|
const res = await new Client().get(url);
|
||||||
const doc = new Document(res.body);
|
const doc = new Document(res.body);
|
||||||
const info = doc.selectFirst("div.cont_box");
|
const info = doc.selectFirst("div.cont_box");
|
||||||
const cover =
|
|
||||||
info
|
|
||||||
.selectFirst("div.detail_body")
|
|
||||||
?.attr("style")
|
|
||||||
?.match(/url\(['"]?(.*?)['"]?\)/)?.[1] ??
|
|
||||||
info.selectFirst("span.thmb img")?.attr("src");
|
|
||||||
const title = info.selectFirst("h1.subj, h3.subj").text.trim();
|
const title = info.selectFirst("h1.subj, h3.subj").text.trim();
|
||||||
const genre =
|
const genre =
|
||||||
Array.from(info.select("p.genre")).map((el) => el.text) != ""
|
Array.from(info.select("p.genre")).map((el) => el.text) != ""
|
||||||
@@ -189,7 +184,6 @@ class DefaultExtension extends MProvider {
|
|||||||
link: url,
|
link: url,
|
||||||
genre: genre,
|
genre: genre,
|
||||||
description: desc,
|
description: desc,
|
||||||
imageUrl: cover,
|
|
||||||
author: author,
|
author: author,
|
||||||
status: status,
|
status: status,
|
||||||
episodes: chapters,
|
episodes: chapters,
|
||||||
|
|||||||
Reference in New Issue
Block a user