Tohomh123 pageListParse selector (#1565)
Tohomh123 pageListParse selector
This commit is contained in:
parent
14dc81abf6
commit
d6cc77afe0
|
@ -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'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue