Fix mangalib cover (#3131)

Fix mangalib cover
This commit is contained in:
Pavka 2020-05-12 15:11:07 +03:00 committed by GitHub
parent bf20b61e01
commit d8c07bd399
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 6 deletions

View File

@ -5,7 +5,7 @@ ext {
appName = 'Tachiyomi: MangaLib'
pkgNameSuffix = 'ru.libmanga'
extClass = '.LibManga'
extVersionCode = 16
extVersionCode = 17
libVersion = '1.2'
}

View File

@ -9,7 +9,6 @@ import com.github.salomonbrys.kotson.array
import com.github.salomonbrys.kotson.get
import com.github.salomonbrys.kotson.int
import com.github.salomonbrys.kotson.nullArray
import com.github.salomonbrys.kotson.nullInt
import com.github.salomonbrys.kotson.nullString
import com.github.salomonbrys.kotson.obj
import com.github.salomonbrys.kotson.string
@ -169,11 +168,10 @@ class LibManga : ConfigurableSource, HttpSource() {
}
private fun popularMangaFromElement(el: JsonElement) = SManga.create().apply {
val slug = el["slug"].string
title = el["name"].string
thumbnail_url = "$baseUrl/uploads/" + if (el["cover"].nullInt != null)
"cover/${el["slug"].string}/cover/cover_250x350.jpg" else
"no-image.png"
url = "/" + el["slug"].string
thumbnail_url = "$baseUrl/uploads/cover/$slug/cover/cover_250x350.jpg"
url = "/$slug"
}
override fun mangaDetailsParse(response: Response): SManga {