Hentaimimi fix (#7574)

* Fix incorrect unescaping when image url contains unicode entities

* Up extVersionCode
This commit is contained in:
Maxim Kuleshov 2021-06-10 16:22:36 +03:00 committed by GitHub
parent 1c0a564c78
commit 6fa8cfe804
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'HentaiMimi'
pkgNameSuffix = 'en.hentaimimi'
extClass = '.HentaiMimi'
extVersionCode = 3
extVersionCode = 4
libVersion = '1.2'
containsNsfw = true
}

View File

@ -152,7 +152,7 @@ class HentaiMimi : ParsedHttpSource() {
override fun pageListParse(document: Document): List<Page> {
val pages = mutableListOf<Page>()
document.select("body main script").html().substringAfter("[").substringBefore("]").split("\",\"").forEachIndexed { index, it ->
val url = "$baseUrl/${it.replace("\\", "").replace("\"", "")}"
val url = "$baseUrl/${it.replace("\\/", "/").replace("\"", "")}"
pages.add(Page(index, url, url))
}