[RU]LibGroup fix covers catalog (#15165)
This commit is contained in:
parent
1213241bb6
commit
b6bb3e28bf
@ -9,7 +9,7 @@ class LibGenerator : ThemeSourceGenerator {
|
||||
|
||||
override val themeClass = "LibGroup"
|
||||
|
||||
override val baseVersionCode: Int = 13
|
||||
override val baseVersionCode: Int = 14
|
||||
|
||||
override val sources = listOf(
|
||||
SingleLang("MangaLib", "https://mangalib.me", "ru", overrideVersionCode = 74),
|
||||
|
@ -180,8 +180,10 @@ abstract class LibGroup(
|
||||
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 = if (el.jsonObject["coverImage"] != null) baseUrl + el.jsonObject["coverImage"]!!.jsonPrimitive.content
|
||||
else baseUrl + "/uploads/cover/" + slug + "/cover/" + el.jsonObject["cover"]!!.jsonPrimitive.content + "_250x350.jpg"
|
||||
thumbnail_url = if (el.jsonObject["coverImage"] != null) el.jsonObject["coverImage"]!!.jsonPrimitive.content
|
||||
else "/uploads/cover/" + slug + "/cover/" + el.jsonObject["cover"]!!.jsonPrimitive.content + "_250x350.jpg"
|
||||
if (!thumbnail_url!!.contains("://"))
|
||||
thumbnail_url = baseUrl + thumbnail_url
|
||||
url = "/$slug"
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user