From 73a5340c585cd93fc672325a7cef21ea800d7bb8 Mon Sep 17 00:00:00 2001 From: Vetle Ledaal Date: Thu, 16 May 2024 16:47:39 +0000 Subject: [PATCH] Arabs Hentai: fix search title + only manga, cover (#3043) --- src/ar/arabshentai/build.gradle | 2 +- .../kanade/tachiyomi/extension/ar/arabshentai/ArabsHentai.kt | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/ar/arabshentai/build.gradle b/src/ar/arabshentai/build.gradle index 5933d3a9f..f7ca0bb0c 100644 --- a/src/ar/arabshentai/build.gradle +++ b/src/ar/arabshentai/build.gradle @@ -1,7 +1,7 @@ ext { extName = 'Arabs Hentai' extClass = '.ArabsHentai' - extVersionCode = 1 + extVersionCode = 2 isNsfw = true } diff --git a/src/ar/arabshentai/src/eu/kanade/tachiyomi/extension/ar/arabshentai/ArabsHentai.kt b/src/ar/arabshentai/src/eu/kanade/tachiyomi/extension/ar/arabshentai/ArabsHentai.kt index 42df275d7..e18840499 100644 --- a/src/ar/arabshentai/src/eu/kanade/tachiyomi/extension/ar/arabshentai/ArabsHentai.kt +++ b/src/ar/arabshentai/src/eu/kanade/tachiyomi/extension/ar/arabshentai/ArabsHentai.kt @@ -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") } }