Japscan: update chapter data selector (#3275)

This commit is contained in:
AwkwardPeak7 2024-05-29 09:55:57 +05:00 committed by GitHub
parent a6fc66f162
commit c16a02dcf3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
ext {
extName = 'Japscan'
extClass = '.Japscan'
extVersionCode = 45
extVersionCode = 46
}
apply from: "$rootDir/common.gradle"

View File

@ -230,7 +230,7 @@ class Japscan : ConfigurableSource, ParsedHttpSource() {
val interfaceName = randomString()
val zjsElement = document.selectFirst("script[src*=/zjs/]")
?: throw Exception("ZJS not found")
val dataElement = document.selectFirst("#data")
val dataElement = document.selectFirst("[id^=data]")
?: throw Exception("Chapter data not found")
val minDoc = Document.createShell(document.location())
val minDocBody = minDoc.body()