SirenKomik: fix 'Post ID not found' (#9579)

fix load picture fast mybe
This commit is contained in:
mozzaru 2025-07-07 23:28:39 +07:00 committed by Draff
parent 84dc72f863
commit aa40f1101f
Signed by: Draff
GPG Key ID: E8A89F3211677653
3 changed files with 6 additions and 3 deletions

View File

@ -3,7 +3,7 @@ ext {
extClass = '.SirenKomik'
themePkg = 'mangathemesia'
baseUrl = 'https://sirenkomik.my.id'
overrideVersionCode = 7
overrideVersionCode = 8
}
apply from: "$rootDir/common.gradle"

View File

@ -64,6 +64,6 @@ class SirenKomik : MangaThemesia(
}
companion object {
val postIdRegex = """postId.:(\d+)""".toRegex()
val postIdRegex = """chapter_id\s*=\s*(\d+)""".toRegex()
}
}

View File

@ -6,7 +6,10 @@ import kotlinx.serialization.Serializable
data class SirenKomikDto(
val `data`: DataWrapper,
) {
val pages get() = data.data.sources.firstOrNull()?.images ?: emptyList()
val pages: List<String>
get() = data.data.sources
.firstOrNull { it.images.isNotEmpty() }
?.images ?: emptyList()
}
@Serializable