From 26f248f323a68217013f8d576f1a0a001b8ccf32 Mon Sep 17 00:00:00 2001 From: bapeey <90949336+bapeey@users.noreply.github.com> Date: Sat, 18 May 2024 09:44:45 -0500 Subject: [PATCH] PeachScans: Fix image can't be loaded (#3090) * fix decode * bump --- lib-multisrc/peachscan/build.gradle.kts | 2 +- .../src/eu/kanade/tachiyomi/multisrc/peachscan/PeachScan.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib-multisrc/peachscan/build.gradle.kts b/lib-multisrc/peachscan/build.gradle.kts index 7c0e9df73..f0079f29b 100644 --- a/lib-multisrc/peachscan/build.gradle.kts +++ b/lib-multisrc/peachscan/build.gradle.kts @@ -2,7 +2,7 @@ plugins { id("lib-multisrc") } -baseVersionCode = 6 +baseVersionCode = 7 dependencies { compileOnly("com.github.tachiyomiorg:image-decoder:e08e9be535") diff --git a/lib-multisrc/peachscan/src/eu/kanade/tachiyomi/multisrc/peachscan/PeachScan.kt b/lib-multisrc/peachscan/src/eu/kanade/tachiyomi/multisrc/peachscan/PeachScan.kt index a5a6b8035..bcfe4bd62 100644 --- a/lib-multisrc/peachscan/src/eu/kanade/tachiyomi/multisrc/peachscan/PeachScan.kt +++ b/lib-multisrc/peachscan/src/eu/kanade/tachiyomi/multisrc/peachscan/PeachScan.kt @@ -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()