PeachScans: Fix image can't be loaded (#3090)

* fix decode

* bump
This commit is contained in:
bapeey 2024-05-18 09:44:45 -05:00 committed by GitHub
parent dc3d456396
commit 26f248f323
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@ plugins {
id("lib-multisrc")
}
baseVersionCode = 6
baseVersionCode = 7
dependencies {
compileOnly("com.github.tachiyomiorg:image-decoder:e08e9be535")

View File

@ -198,7 +198,7 @@ abstract class PeachScan(
val entryIndex = splitEntryName.first().toInt()
val entryType = splitEntryName.last()
val imageData = if (entryType == "avif") {
val imageData = if (entryType == "avif" || splitEntryName.size == 1) {
zis.readBytes()
} else {
val svgBytes = zis.readBytes()