Fix HBrowse new galleries
This commit is contained in:
parent
0bd09d532d
commit
8185b91f11
@ -66,12 +66,14 @@ class HBrowse(delegate: HttpSource, val context: Context) :
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun parseIntoTables(doc: Document): Map<String, Map<String, Element>> {
|
private fun parseIntoTables(doc: Document): Map<String, Map<String, Element>> {
|
||||||
return doc.select("#main > .listTable").map { ele ->
|
return doc.select("#main > .listTable").associate { ele ->
|
||||||
val tableName = ele.previousElementSibling()?.text()?.lowercase().orEmpty()
|
val tableName = ele.previousElementSibling()?.text()?.lowercase().orEmpty()
|
||||||
tableName to ele.select("tr").map {
|
tableName to ele.select("tr")
|
||||||
it.child(0).text() to it.child(1)
|
.filter { it.childrenSize() > 1 }
|
||||||
}.toMap()
|
.associate {
|
||||||
}.toMap()
|
it.child(0).text() to it.child(1)
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
override val matchingHosts = listOf(
|
override val matchingHosts = listOf(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user