Dm5: Fix chapter list not loading (#9573)

This commit is contained in:
tanaka-shizuku3 2025-07-08 00:28:24 +08:00 committed by Draff
parent f6945c3b71
commit 54f4552fcc
Signed by: Draff
GPG Key ID: E8A89F3211677653
2 changed files with 2 additions and 3 deletions

View File

@ -1,7 +1,7 @@
ext { ext {
extName = 'Dm5' extName = 'Dm5'
extClass = '.Dm5' extClass = '.Dm5'
extVersionCode = 4 extVersionCode = 5
isNsfw = true isNsfw = true
} }

View File

@ -82,8 +82,7 @@ class Dm5 : ParsedHttpSource(), ConfigurableSource {
override fun chapterListParse(response: Response): List<SChapter> { override fun chapterListParse(response: Response): List<SChapter> {
val document = response.asJsoup() val document = response.asJsoup()
// May need to click button on website to read // May need to click button on website to read
document.selectFirst("ul#detail-list-select-1")?.attr("class") document.selectFirst("div#chapterlistload") ?: throw Exception("請到webview確認")
?: throw Exception("請到webview確認")
val li = document.select("div#chapterlistload li > a").map { val li = document.select("div#chapterlistload li > a").map {
SChapter.create().apply { SChapter.create().apply {
url = it.attr("href") url = it.attr("href")