LeerCapitulo: Fix unable to find the script (#7379)

fix selector
This commit is contained in:
dngonz 2025-01-28 12:39:49 +01:00 committed by Draff
parent 1fb7d1c976
commit 43979e6f99
No known key found for this signature in database
GPG Key ID: E8A89F3211677653
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -180,7 +180,7 @@ class LeerCapitulo : ParsedHttpSource() {
val arrayData = document.selectFirst("#array_data")!!.text()
val scripts = document.select("head > script[src^=/assets/][src$=.js]").map { it.attr("abs:src") }.reversed().toMutableList()
val scripts = document.select("head > script[src^=/assets/][src*=.js]").map { it.attr("abs:src") }.reversed().toMutableList()
var dataScript: String? = null