fix WP MangaStream regex (#5007)
previous regex match other thing in some site
This commit is contained in:
parent
cb1d3da58a
commit
fc9a38e02b
|
@ -5,7 +5,7 @@ ext {
|
|||
extName = 'WP MangaStream (multiple sources)'
|
||||
pkgNameSuffix = 'all.wpmangastream'
|
||||
extClass = '.WPMangaStreamFactory'
|
||||
extVersionCode = 36
|
||||
extVersionCode = 37
|
||||
libVersion = '1.2'
|
||||
}
|
||||
|
||||
|
|
|
@ -266,7 +266,7 @@ abstract class WPMangaStream(
|
|||
if (pages.isNotEmpty()) { return pages }
|
||||
|
||||
val docString = document.toString()
|
||||
val imageListRegex = Regex("images.*?:.*?(\\[.*?\\])")
|
||||
val imageListRegex = Regex("\\\"images.*?:.*?(\\[.*?\\])")
|
||||
|
||||
val imageList = JSONArray(imageListRegex.find(docString)!!.destructured.toList()[0])
|
||||
|
||||
|
|
Loading…
Reference in New Issue