Fix libmanga chapters page parse (#3501)

* Fix libmanga chapters page parse

* Bump libmanga version

Co-authored-by: pavkazzz <me@pavkazzz.ru>
This commit is contained in:
Pavka 2020-06-12 20:07:24 +03:00 committed by GitHub
parent 8eacce0ca3
commit a45c879f2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -5,7 +5,7 @@ ext {
appName = 'Tachiyomi: MangaLib'
pkgNameSuffix = 'ru.libmanga'
extClass = '.LibManga'
extVersionCode = 18
extVersionCode = 19
libVersion = '1.2'
}

View File

@ -257,7 +257,8 @@ class LibManga : ConfigurableSource, HttpSource() {
.html()
.trim()
.removePrefix("window.__info = ")
.removeSuffix(";")
.split(";")
.first()
val chapInfoJson = jsonParser.parse(chapInfo).obj
val servers = chapInfoJson["servers"].asJsonObject