MD: fix selector (#17584)

MDemon: fix selector
This commit is contained in:
AwkwardPeak7 2023-08-18 17:59:17 +05:00 committed by GitHub
parent 2a7801e876
commit aa14ea08fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'Manga Demon' extName = 'Manga Demon'
pkgNameSuffix = 'en.mangademon' pkgNameSuffix = 'en.mangademon'
extClass = '.MangaDemon' extClass = '.MangaDemon'
extVersionCode = 2 extVersionCode = 3
} }
apply from: "$rootDir/common.gradle" apply from: "$rootDir/common.gradle"

View File

@ -141,7 +141,7 @@ class MangaDemon : ParsedHttpSource() {
} }
private fun loadMoreImages(document: Document): List<String> { private fun loadMoreImages(document: Document): List<String> {
val buttonHtml = document.selectFirst("button:contains(load full chapter)") val buttonHtml = document.selectFirst("img.imgholder ~ button")
?.attr("onclick")?.replace("\"", "\'") ?.attr("onclick")?.replace("\"", "\'")
?: return emptyList() ?: return emptyList()