Bentomanga fix "No results found" (#16279)
* Update selectors paths * Update extVersionCode * Change title & thumbnail paths
This commit is contained in:
parent
2f2aaaee45
commit
2f67ec0d6b
|
@ -6,7 +6,7 @@ ext {
|
|||
extName = 'Bento Manga'
|
||||
pkgNameSuffix = 'fr.japanread'
|
||||
extClass = '.BentoManga'
|
||||
extVersionCode = 11
|
||||
extVersionCode = 12
|
||||
isNsfw = true
|
||||
}
|
||||
|
||||
|
|
|
@ -46,15 +46,15 @@ class BentoManga : ParsedHttpSource() {
|
|||
// Generic (used by popular/latest/search)
|
||||
private fun mangaListFromElement(element: Element): SManga {
|
||||
return SManga.create().apply {
|
||||
title = element.select("a.component-manga-cover span.div-manga_cover-title")
|
||||
title = element.select("div").select("div.manga_header h1")
|
||||
.text()
|
||||
setUrlWithoutDomain(element.select("a").attr("href"))
|
||||
thumbnail_url = element.select("a.component-manga-cover img ")
|
||||
thumbnail_url = element.select("div").select("img[alt=couverture manga]")
|
||||
.attr("src")
|
||||
}
|
||||
}
|
||||
|
||||
private fun mangaListSelector() = "div#mangas_content div.div-manga div.div-manga_cover"
|
||||
private fun mangaListSelector() = "div#mangas_content div.manga"
|
||||
private fun mangaListNextPageSelector() = ".paginator button:contains(>)"
|
||||
|
||||
// Popular
|
||||
|
@ -178,6 +178,7 @@ class BentoManga : ParsedHttpSource() {
|
|||
chapterListParse(response, requestUrl)
|
||||
}
|
||||
}
|
||||
|
||||
private fun chapterListParse(response: Response, requestUrl: String): List<SChapter> {
|
||||
val chapters = mutableListOf<SChapter>()
|
||||
var document = response.asJsoup()
|
||||
|
|
Loading…
Reference in New Issue