SlimeRead: Fix unexpected JSON token (#430)

Fix edge case
This commit is contained in:
bapeey 2024-01-20 21:44:24 -05:00 committed by Draff
parent e96323105e
commit 15b9714c54
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
ext { ext {
extName = 'SlimeRead' extName = 'SlimeRead'
extClass = '.SlimeRead' extClass = '.SlimeRead'
extVersionCode = 1 extVersionCode = 2
isNsfw = true isNsfw = true
} }

View File

@ -58,7 +58,7 @@ data class PageListDto(@SerialName("book_temp_cap_unit") val pages: List<PageDto
@Serializable @Serializable
data class PageDto( data class PageDto(
@SerialName("btcu_image") private val path: String, @SerialName("btcu_image") private val path: String,
@SerialName("btcu_provider_host") private val hostId: Int, @SerialName("btcu_provider_host") private val hostId: Int?,
) { ) {
val url by lazy { val url by lazy {
val baseUrl = when (hostId) { val baseUrl = when (hostId) {