[RU]LibGroup fix covers catalog (#15165)

This commit is contained in:
Eshlender 2023-01-29 20:57:12 +05:00 committed by GitHub
parent 1213241bb6
commit b6bb3e28bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View File

@ -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),

View File

@ -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"
}