Koushoku: fix page selector (#12650)

This commit is contained in:
Vetle Ledaal 2022-07-21 02:35:06 +00:00 committed by GitHub
parent 4e30c58623
commit a9a32bc6ac
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 = 'Koushoku' extName = 'Koushoku'
pkgNameSuffix = 'en.koushoku' pkgNameSuffix = 'en.koushoku'
extClass = '.Koushoku' extClass = '.Koushoku'
extVersionCode = 6 extVersionCode = 7
isNsfw = true isNsfw = true
} }

View File

@ -158,7 +158,7 @@ class Koushoku : ParsedHttpSource() {
if (id.isNullOrEmpty()) if (id.isNullOrEmpty())
throw UnsupportedOperationException("Error: Unknown archive id") throw UnsupportedOperationException("Error: Unknown archive id")
val url = URL(document.selectFirst(".page img").attr("src")) val url = URL(document.selectFirst(".main img, main img").attr("src"))
val origin = "${url.protocol}://${url.host}" val origin = "${url.protocol}://${url.host}"
return (1..totalPages).map { return (1..totalPages).map {