Kuaikanmanhua: Fix page list (#12620)

This commit is contained in:
anenasa 2022-07-18 22:59:42 +08:00 committed by GitHub
parent 3e1df100b8
commit c9f515761e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ ext {
extName = 'Kuaikanmanhua'
pkgNameSuffix = 'zh.kuaikanmanhua'
extClass = '.Kuaikanmanhua'
extVersionCode = 9
extVersionCode = 10
}
apply from: "$rootDir/common.gradle"

View File

@ -207,7 +207,7 @@ class Kuaikanmanhua : HttpSource() {
val document = response.asJsoup()
val script = document.selectFirst("script:containsData(comicImages)").data()
val images = script.substringAfter("comicImages:")
.substringBefore("},nextComicInfo")
.substringBefore(",is_vip_exclusive")
.replace("""(:([^\[\{\"]+?)[\},])""".toRegex(), fixJson)
.replace("""([,{]([^\[\{\"]+?)[\}:])""".toRegex(), fixJson)
.let { json.parseToJsonElement(it).jsonArray }