MMLook: Fix search of Dumanwu (#10265)

This commit is contained in:
tanaka-shizuku3 2025-08-24 17:56:59 +08:00 committed by Draff
parent d1fe20ff09
commit c74fe07813
Signed by: Draff
GPG Key ID: E8A89F3211677653
2 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,7 @@ plugins {
id("lib-multisrc") id("lib-multisrc")
} }
baseVersionCode = 1 baseVersionCode = 2
dependencies { dependencies {
implementation(project(":lib:unpacker")) implementation(project(":lib:unpacker"))

View File

@ -95,10 +95,10 @@ open class MMLook(
override fun searchMangaParse(response: Response): MangasPage { override fun searchMangaParse(response: Response): MangasPage {
if (response.request.method == "GET") return popularMangaParse(response) if (response.request.method == "GET") return popularMangaParse(response)
val entries = response.asJsoup().select(".col-auto").map { element -> val entries = response.asJsoup().select(".item-data > div").map { element ->
SManga.create().apply { SManga.create().apply {
url = element.selectFirst("a")!!.attr("href").mustRemoveSurrounding("/", "/") url = element.selectFirst("a")!!.attr("href").mustRemoveSurrounding("/", "/")
title = element.selectFirst(".e-title")!!.text() title = element.selectFirst(".e-title, .title")!!.text()
author = element.selectFirst(".tip")!!.text() author = element.selectFirst(".tip")!!.text()
thumbnail_url = element.selectFirst("img")!!.attr("data-src") thumbnail_url = element.selectFirst("img")!!.attr("data-src")
}.formatUrl() }.formatUrl()