Koushoku: fix page selector (#12650)
This commit is contained in:
parent
4e30c58623
commit
a9a32bc6ac
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue