Update Kotlin, coroutines, kolinter (#4363)
* Update kolinter, address some build warnings * Update to Kotlin 1.4.10, coroutines 1.3.9
This commit is contained in:
@ -37,14 +37,17 @@ open class EliMangasProvider(
|
||||
override fun popularMangaParse(response: Response): MangasPage {
|
||||
val json = gson.fromJson<JsonArray>(response.body()!!.string()).asJsonArray
|
||||
|
||||
return MangasPage(json.map {
|
||||
SManga.create().apply {
|
||||
val id = it["id"].asString
|
||||
url = id
|
||||
title = it["name"].asString
|
||||
thumbnail_url = "https://www.elimangas.com/images/$id.jpg"
|
||||
}
|
||||
}, json.size() >= 30)
|
||||
return MangasPage(
|
||||
json.map {
|
||||
SManga.create().apply {
|
||||
val id = it["id"].asString
|
||||
url = id
|
||||
title = it["name"].asString
|
||||
thumbnail_url = "https://www.elimangas.com/images/$id.jpg"
|
||||
}
|
||||
},
|
||||
json.size() >= 30
|
||||
)
|
||||
}
|
||||
|
||||
// Latest
|
||||
|
Reference in New Issue
Block a user