Arabs Hentai: fix search title + only manga, cover (#3043)

This commit is contained in:
Vetle Ledaal 2024-05-16 16:47:39 +00:00 committed by Draff
parent 0a7ed30e02
commit 73a5340c58
2 changed files with 4 additions and 3 deletions

View File

@ -1,7 +1,7 @@
ext {
extName = 'Arabs Hentai'
extClass = '.ArabsHentai'
extVersionCode = 1
extVersionCode = 2
isNsfw = true
}

View File

@ -87,13 +87,13 @@ class ArabsHentai : ParsedHttpSource() {
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) =
SManga.create().apply {
element.selectFirst(".details .title")!!.run {
setUrlWithoutDomain(selectFirst("a")!!.absUrl("href"))
title = ownText()
title = text()
}
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-src") -> attr("abs:data-src")
hasAttr("data-lazy-src") -> attr("abs:data-lazy-src")
hasAttr("bv-data-src") -> attr("bv-data-src")
else -> attr("abs:src")
}
}