[GroupLe] Fix pages loading
This commit is contained in:
@@ -192,7 +192,7 @@ internal abstract class GroupleParser(
|
|||||||
val scripts = doc.select("script")
|
val scripts = doc.select("script")
|
||||||
for (script in scripts) {
|
for (script in scripts) {
|
||||||
val data = script.html()
|
val data = script.html()
|
||||||
val pos = data.indexOf("rm_h.initReader(")
|
val pos = data.indexOf("rm_h.readerInit( 0,")
|
||||||
if (pos == -1) {
|
if (pos == -1) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
@@ -204,7 +204,7 @@ internal abstract class GroupleParser(
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
val ja = JSONArray("[$json]")
|
val ja = JSONArray("[$json]")
|
||||||
val pages = ja.getJSONArray(0)
|
val pages = ja.getJSONArray(1)
|
||||||
val servers = ja.getJSONArray(3).mapJSON { it.getString("path") }
|
val servers = ja.getJSONArray(3).mapJSON { it.getString("path") }
|
||||||
val serversStr = servers.joinToString("|")
|
val serversStr = servers.joinToString("|")
|
||||||
return (0 until pages.length()).map { i ->
|
return (0 until pages.length()).map { i ->
|
||||||
|
|||||||
Reference in New Issue
Block a user