fix ZipPageLoader not working for encrypted cbz archives (#877)

This commit is contained in:
Shamicen 2023-05-07 04:23:56 +02:00 committed by GitHub
parent f42a8ea37a
commit 492fa6eaaa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -66,7 +66,7 @@ internal class ZipPageLoader(file: File) : PageLoader() {
zip.setPassword(CbzCrypto.getDecryptedPasswordCbz())
zip.fileHeaders.asSequence()
.filterNot { !it.isDirectory }
.filterNot { it.isDirectory }
.forEach { entry ->
zip.extractFile(entry, tmpDir.absolutePath)
}