parent
8d6dd2e419
commit
2702a755c5
|
@ -5,7 +5,7 @@ ext {
|
|||
appName = 'Tachiyomi: NHentai'
|
||||
pkgNameSuffix = 'all.nhentai'
|
||||
extClass = '.NHEnglish; .NHJapanese; .NHChinese'
|
||||
extVersionCode = 8
|
||||
extVersionCode = 9
|
||||
libVersion = '1.2'
|
||||
}
|
||||
|
||||
|
|
|
@ -41,7 +41,9 @@ open class NHentai(override val lang: String, private val nhLang: String) : Pars
|
|||
override fun latestUpdatesFromElement(element: Element) = SManga.create().apply {
|
||||
setUrlWithoutDomain(element.select("a").attr("href"))
|
||||
title = element.select("a > div").text().replace("\"", "").trim()
|
||||
thumbnail_url = element.select(".cover img").attr("data-src")
|
||||
|
||||
val img = element.select(".cover img").first()
|
||||
thumbnail_url = if (img.hasAttr("data-src")) img.absUrl("data-src") else img.absUrl("src")
|
||||
}
|
||||
|
||||
override fun latestUpdatesNextPageSelector() = "#content > section.pagination > a.next"
|
||||
|
|
Loading…
Reference in New Issue