Tohomh123 pageListParse selector (#1565)

Tohomh123 pageListParse selector
This commit is contained in:
Mike 2019-09-26 16:57:51 -04:00 committed by arkon
parent 14dc81abf6
commit d6cc77afe0
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ ext {
appName = 'Tachiyomi: Tohomh123' appName = 'Tachiyomi: Tohomh123'
pkgNameSuffix = 'zh.tohomh123' pkgNameSuffix = 'zh.tohomh123'
extClass = '.Tohomh' extClass = '.Tohomh'
extVersionCode = 1 extVersionCode = 2
libVersion = '1.2' libVersion = '1.2'
} }

View File

@ -131,7 +131,7 @@ class Tohomh : ParsedHttpSource() {
override fun pageListParse(document: Document): List<Page> { override fun pageListParse(document: Document): List<Page> {
val pages = mutableListOf<Page>() val pages = mutableListOf<Page>()
val script = document.select("script:containsData(did)").first().data() val script = document.select("script:containsData(imgDomain)").first().data()
val did = script.substringAfter("did=").substringBefore(";") val did = script.substringAfter("did=").substringBefore(";")
val sid = script.substringAfter("sid=").substringBefore(";") val sid = script.substringAfter("sid=").substringBefore(";")
val lastPage = script.substringAfter("pcount =").substringBefore(";").trim().toInt() val lastPage = script.substringAfter("pcount =").substringBefore(";").trim().toInt()