parent
f9566c55e4
commit
e3933d6f22
|
@ -2,4 +2,4 @@ plugins {
|
||||||
id("lib-multisrc")
|
id("lib-multisrc")
|
||||||
}
|
}
|
||||||
|
|
||||||
baseVersionCode = 14
|
baseVersionCode = 15
|
||||||
|
|
|
@ -233,8 +233,8 @@ open class Kemono(
|
||||||
GET("$baseUrl/$apiPath${chapter.url}", headers)
|
GET("$baseUrl/$apiPath${chapter.url}", headers)
|
||||||
|
|
||||||
override fun pageListParse(response: Response): List<Page> {
|
override fun pageListParse(response: Response): List<Page> {
|
||||||
val post: KemonoPostDto = response.parseAs()
|
val postData: KemonoPostDtoWrapped = response.parseAs()
|
||||||
return post.images.mapIndexed { i, path -> Page(i, imageUrl = baseUrl + path) }
|
return postData.post.images.mapIndexed { i, path -> Page(i, imageUrl = baseUrl + path) }
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun imageRequest(page: Page): Request {
|
override fun imageRequest(page: Page): Request {
|
||||||
|
|
|
@ -51,6 +51,11 @@ class KemonoCreatorDto(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Serializable
|
||||||
|
class KemonoPostDtoWrapped(
|
||||||
|
val post: KemonoPostDto,
|
||||||
|
)
|
||||||
|
|
||||||
@Serializable
|
@Serializable
|
||||||
class KemonoPostDto(
|
class KemonoPostDto(
|
||||||
private val id: String,
|
private val id: String,
|
||||||
|
|
Loading…
Reference in New Issue