Arabs Hentai: fix search title + only manga, cover (#3043)
This commit is contained in:
parent
0a7ed30e02
commit
73a5340c58
|
@ -1,7 +1,7 @@
|
||||||
ext {
|
ext {
|
||||||
extName = 'Arabs Hentai'
|
extName = 'Arabs Hentai'
|
||||||
extClass = '.ArabsHentai'
|
extClass = '.ArabsHentai'
|
||||||
extVersionCode = 1
|
extVersionCode = 2
|
||||||
isNsfw = true
|
isNsfw = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -87,13 +87,13 @@ class ArabsHentai : ParsedHttpSource() {
|
||||||
return GET(url.build(), headers)
|
return GET(url.build(), headers)
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun searchMangaSelector() = ".search-page .result-item article"
|
override fun searchMangaSelector() = ".search-page .result-item article:not(:has(.tvshows))"
|
||||||
|
|
||||||
override fun searchMangaFromElement(element: Element) =
|
override fun searchMangaFromElement(element: Element) =
|
||||||
SManga.create().apply {
|
SManga.create().apply {
|
||||||
element.selectFirst(".details .title")!!.run {
|
element.selectFirst(".details .title")!!.run {
|
||||||
setUrlWithoutDomain(selectFirst("a")!!.absUrl("href"))
|
setUrlWithoutDomain(selectFirst("a")!!.absUrl("href"))
|
||||||
title = ownText()
|
title = text()
|
||||||
}
|
}
|
||||||
thumbnail_url = element.selectFirst(".image .thumbnail a img")?.imgAttr()
|
thumbnail_url = element.selectFirst(".image .thumbnail a img")?.imgAttr()
|
||||||
}
|
}
|
||||||
|
@ -171,6 +171,7 @@ class ArabsHentai : ParsedHttpSource() {
|
||||||
hasAttr("data-cfsrc") -> attr("abs:data-cfsrc")
|
hasAttr("data-cfsrc") -> attr("abs:data-cfsrc")
|
||||||
hasAttr("data-src") -> attr("abs:data-src")
|
hasAttr("data-src") -> attr("abs:data-src")
|
||||||
hasAttr("data-lazy-src") -> attr("abs:data-lazy-src")
|
hasAttr("data-lazy-src") -> attr("abs:data-lazy-src")
|
||||||
|
hasAttr("bv-data-src") -> attr("bv-data-src")
|
||||||
else -> attr("abs:src")
|
else -> attr("abs:src")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue