webtoons: Remove cover extraction to keep using thumbnail from popular/latest

This commit is contained in:
xMohnad
2025-06-15 03:25:01 +03:00
parent b2ad2a2051
commit ace25549b5

View File

@@ -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,