Fix chapters not opening (#8738)
This commit is contained in:
parent
dd07318201
commit
cc427a04a3
|
@ -5,7 +5,7 @@ ext {
|
||||||
extName = 'AllHentai'
|
extName = 'AllHentai'
|
||||||
pkgNameSuffix = 'ru.allhentai'
|
pkgNameSuffix = 'ru.allhentai'
|
||||||
extClass = '.AllHentai'
|
extClass = '.AllHentai'
|
||||||
extVersionCode = 8
|
extVersionCode = 9
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
containsNsfw = true
|
containsNsfw = true
|
||||||
}
|
}
|
||||||
|
|
|
@ -229,9 +229,7 @@ class AllHentai : ParsedHttpSource() {
|
||||||
|
|
||||||
override fun pageListParse(response: Response): List<Page> {
|
override fun pageListParse(response: Response): List<Page> {
|
||||||
val html = response.body!!.string()
|
val html = response.body!!.string()
|
||||||
val beginIndex = html.indexOf("rm_h.init( [")
|
val trimmedHtml = html.substringAfter("rm_h.initReader(").substringBefore(");")
|
||||||
val endIndex = html.indexOf(");", beginIndex)
|
|
||||||
val trimmedHtml = html.substring(beginIndex, endIndex)
|
|
||||||
|
|
||||||
val p = Pattern.compile("'.*?','.*?',\".*?\"")
|
val p = Pattern.compile("'.*?','.*?',\".*?\"")
|
||||||
val m = p.matcher(trimmedHtml)
|
val m = p.matcher(trimmedHtml)
|
||||||
|
|
Loading…
Reference in New Issue