[RU]Lib cover thumbnail_url (#11390)
This commit is contained in:
parent
905d12da4c
commit
be672522da
|
@ -6,7 +6,7 @@ ext {
|
|||
extName = 'HentaiLib'
|
||||
pkgNameSuffix = 'ru.libhentai'
|
||||
extClass = '.LibHentai'
|
||||
extVersionCode = 10
|
||||
extVersionCode = 11
|
||||
isNsfw = true
|
||||
}
|
||||
|
||||
|
|
|
@ -110,7 +110,7 @@ class LibHentai : ConfigurableSource, HttpSource() {
|
|||
private fun latestUpdatesFromElement(element: Element): SManga {
|
||||
val manga = SManga.create()
|
||||
element.select("div.cover").first().let { img ->
|
||||
manga.thumbnail_url = img.attr("data-src").replace("_thumb", "_250x350")
|
||||
manga.thumbnail_url = baseUrl + img.attr("data-src").replace("_thumb", "_250x350")
|
||||
}
|
||||
|
||||
element.select("a").first().let { link ->
|
||||
|
@ -168,15 +168,13 @@ class LibHentai : ConfigurableSource, HttpSource() {
|
|||
}
|
||||
|
||||
private fun popularMangaFromElement(el: JsonElement) = SManga.create().apply {
|
||||
val slug = el.jsonObject["slug"]!!.jsonPrimitive.content
|
||||
val cover = el.jsonObject["cover"]!!.jsonPrimitive.content
|
||||
title = when {
|
||||
isEng.equals("rus") && el.jsonObject["rus_name"]?.jsonPrimitive?.content.orEmpty().isNotEmpty() -> el.jsonObject["rus_name"]!!.jsonPrimitive.content
|
||||
isEng.equals("eng") && el.jsonObject["eng_name"]?.jsonPrimitive?.content.orEmpty().isNotEmpty() -> el.jsonObject["eng_name"]!!.jsonPrimitive.content
|
||||
else -> el.jsonObject["name"]!!.jsonPrimitive.content
|
||||
}
|
||||
thumbnail_url = "$COVER_URL/huploads/cover/$slug/cover/${cover}_250x350.jpg"
|
||||
url = "/$slug"
|
||||
thumbnail_url = baseUrl + el.jsonObject["covers"]!!.jsonObject["default"]!!.jsonPrimitive.content
|
||||
url = "/" + el.jsonObject["slug"]!!.jsonPrimitive.content
|
||||
}
|
||||
|
||||
override fun mangaDetailsParse(response: Response): SManga {
|
||||
|
|
|
@ -6,7 +6,7 @@ ext {
|
|||
extName = 'MangaLib'
|
||||
pkgNameSuffix = 'ru.libmanga'
|
||||
extClass = '.LibManga'
|
||||
extVersionCode = 66
|
||||
extVersionCode = 67
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
|
|
@ -103,7 +103,7 @@ class LibManga : ConfigurableSource, HttpSource() {
|
|||
private fun latestUpdatesFromElement(element: Element): SManga {
|
||||
val manga = SManga.create()
|
||||
element.select("div.cover").first().let { img ->
|
||||
manga.thumbnail_url = img.attr("data-src").replace("_thumb", "_250x350")
|
||||
manga.thumbnail_url = baseUrl + img.attr("data-src").replace("_thumb", "_250x350")
|
||||
}
|
||||
|
||||
element.select("a").first().let { link ->
|
||||
|
@ -161,15 +161,13 @@ class LibManga : ConfigurableSource, HttpSource() {
|
|||
}
|
||||
|
||||
private fun popularMangaFromElement(el: JsonElement) = SManga.create().apply {
|
||||
val slug = el.jsonObject["slug"]!!.jsonPrimitive.content
|
||||
val cover = el.jsonObject["cover"]!!.jsonPrimitive.content
|
||||
title = when {
|
||||
isEng.equals("rus") && el.jsonObject["rus_name"]?.jsonPrimitive?.content.orEmpty().isNotEmpty() -> el.jsonObject["rus_name"]!!.jsonPrimitive.content
|
||||
isEng.equals("eng") && el.jsonObject["eng_name"]?.jsonPrimitive?.content.orEmpty().isNotEmpty() -> el.jsonObject["eng_name"]!!.jsonPrimitive.content
|
||||
else -> el.jsonObject["name"]!!.jsonPrimitive.content
|
||||
}
|
||||
thumbnail_url = "$COVER_URL/uploads/cover/$slug/cover/${cover}_250x350.jpg"
|
||||
url = "/$slug"
|
||||
thumbnail_url = baseUrl + el.jsonObject["covers"]!!.jsonObject["default"]!!.jsonPrimitive.content
|
||||
url = "/" + el.jsonObject["slug"]!!.jsonPrimitive.content
|
||||
}
|
||||
|
||||
override fun mangaDetailsParse(response: Response): SManga {
|
||||
|
|
Loading…
Reference in New Issue