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