Fix HBrowse new galleries

This commit is contained in:
Jobobby04 2022-02-26 12:10:37 -05:00
parent 0bd09d532d
commit 8185b91f11

View File

@ -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(