parent
bf20b61e01
commit
d8c07bd399
|
@ -5,7 +5,7 @@ ext {
|
||||||
appName = 'Tachiyomi: MangaLib'
|
appName = 'Tachiyomi: MangaLib'
|
||||||
pkgNameSuffix = 'ru.libmanga'
|
pkgNameSuffix = 'ru.libmanga'
|
||||||
extClass = '.LibManga'
|
extClass = '.LibManga'
|
||||||
extVersionCode = 16
|
extVersionCode = 17
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,6 @@ import com.github.salomonbrys.kotson.array
|
||||||
import com.github.salomonbrys.kotson.get
|
import com.github.salomonbrys.kotson.get
|
||||||
import com.github.salomonbrys.kotson.int
|
import com.github.salomonbrys.kotson.int
|
||||||
import com.github.salomonbrys.kotson.nullArray
|
import com.github.salomonbrys.kotson.nullArray
|
||||||
import com.github.salomonbrys.kotson.nullInt
|
|
||||||
import com.github.salomonbrys.kotson.nullString
|
import com.github.salomonbrys.kotson.nullString
|
||||||
import com.github.salomonbrys.kotson.obj
|
import com.github.salomonbrys.kotson.obj
|
||||||
import com.github.salomonbrys.kotson.string
|
import com.github.salomonbrys.kotson.string
|
||||||
|
@ -169,11 +168,10 @@ class LibManga : ConfigurableSource, HttpSource() {
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun popularMangaFromElement(el: JsonElement) = SManga.create().apply {
|
private fun popularMangaFromElement(el: JsonElement) = SManga.create().apply {
|
||||||
|
val slug = el["slug"].string
|
||||||
title = el["name"].string
|
title = el["name"].string
|
||||||
thumbnail_url = "$baseUrl/uploads/" + if (el["cover"].nullInt != null)
|
thumbnail_url = "$baseUrl/uploads/cover/$slug/cover/cover_250x350.jpg"
|
||||||
"cover/${el["slug"].string}/cover/cover_250x350.jpg" else
|
url = "/$slug"
|
||||||
"no-image.png"
|
|
||||||
url = "/" + el["slug"].string
|
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun mangaDetailsParse(response: Response): SManga {
|
override fun mangaDetailsParse(response: Response): SManga {
|
||||||
|
|
Loading…
Reference in New Issue