hentaifantasy: Thumbnail support (#4919)
* thumnail support * change version
This commit is contained in:
parent
7dd03b565b
commit
71e7c34dd7
|
@ -1,7 +1,7 @@
|
|||
ext {
|
||||
extName = 'HentaiFantasy'
|
||||
extClass = '.HentaiFantasy'
|
||||
extVersionCode = 4
|
||||
extVersionCode = 5
|
||||
isNsfw = true
|
||||
}
|
||||
|
||||
|
|
|
@ -40,15 +40,18 @@ class HentaiFantasy : ParsedHttpSource() {
|
|||
}
|
||||
}
|
||||
|
||||
override fun popularMangaSelector() = "div.list > div.group > div.title > a"
|
||||
override fun popularMangaSelector() = "div.group"
|
||||
|
||||
override fun popularMangaRequest(page: Int) =
|
||||
GET("$baseUrl/most_downloaded/$page/", headers)
|
||||
|
||||
override fun popularMangaFromElement(element: Element): SManga {
|
||||
val manga = SManga.create()
|
||||
manga.setUrlWithoutDomain(element.attr("href"))
|
||||
manga.title = element.text().trim()
|
||||
|
||||
manga.setUrlWithoutDomain(element.selectFirst("div.title a")!!.attr("href"))
|
||||
manga.title = element.selectFirst("div.title a")!!.attr("title")
|
||||
manga.thumbnail_url = element.selectFirst("img.preview")?.attr("src")
|
||||
|
||||
return manga
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue