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 GitHub
parent ffd8a0f880
commit 7ce808fbc8
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -58,7 +58,7 @@ data class PageListDto(@SerialName("book_temp_cap_unit") val pages: List<PageDto
@Serializable
data class PageDto(
@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 baseUrl = when (hostId) {