Fix sources after Jsoup update
This commit is contained in:
parent
65f6e14a46
commit
2784794634
@ -130,9 +130,9 @@ class EHentai(
|
|||||||
|
|
||||||
private fun extendedGenericMangaParse(doc: Document) = with(doc) {
|
private fun extendedGenericMangaParse(doc: Document) = with(doc) {
|
||||||
// Parse mangas (supports compact + extended layout)
|
// Parse mangas (supports compact + extended layout)
|
||||||
val parsedMangas = select(".itg > tbody > tr").filter {
|
val parsedMangas = select(".itg > tbody > tr").filter { element ->
|
||||||
// Do not parse header and ads
|
// Do not parse header and ads
|
||||||
it.selectFirst("th") == null && it.selectFirst(".itd") == null
|
element.selectFirst("th") == null && element.selectFirst(".itd") == null
|
||||||
}.map { body ->
|
}.map { body ->
|
||||||
val thumbnailElement = body.selectFirst(".gl1e img, .gl2c .glthumb img")!!
|
val thumbnailElement = body.selectFirst(".gl1e img, .gl2c .glthumb img")!!
|
||||||
val column2 = body.selectFirst(".gl3e, .gl2c")!!
|
val column2 = body.selectFirst(".gl3e, .gl2c")!!
|
||||||
|
@ -47,8 +47,8 @@ class EightMuses(delegate: HttpSource, val context: Context) :
|
|||||||
val gc = doc.select(".gallery .c-tile")
|
val gc = doc.select(".gallery .c-tile")
|
||||||
|
|
||||||
// Check if any in self
|
// Check if any in self
|
||||||
val selfAlbums = gc.filter { it.attr("href").startsWith("/comics/album") }
|
val selfAlbums = gc.filter { element -> element.attr("href").startsWith("/comics/album") }
|
||||||
val selfImages = gc.filter { it.attr("href").startsWith("/comics/picture") }
|
val selfImages = gc.filter { element -> element.attr("href").startsWith("/comics/picture") }
|
||||||
|
|
||||||
return SelfContents(selfAlbums, selfImages)
|
return SelfContents(selfAlbums, selfImages)
|
||||||
}
|
}
|
||||||
|
@ -69,7 +69,7 @@ class HBrowse(delegate: HttpSource, val context: Context) :
|
|||||||
return doc.select("#main > .listTable").associate { 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")
|
tableName to ele.select("tr")
|
||||||
.filter { it.childrenSize() > 1 }
|
.filter { element -> element.childrenSize() > 1 }
|
||||||
.associate {
|
.associate {
|
||||||
it.child(0).text() to it.child(1)
|
it.child(0).text() to it.child(1)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user