actually forgot about this one

This commit is contained in:
AbdallahMehiz
2024-02-03 22:35:23 +01:00
parent fa550e465b
commit 2003987229
2 changed files with 1 additions and 4 deletions

View File

@ -1,7 +1,6 @@
package tachiyomi.source.local
import android.content.Context
import android.os.ParcelFileDescriptor.AutoCloseInputStream
import com.hippo.unifile.UniFile
import eu.kanade.tachiyomi.source.CatalogueSource
import eu.kanade.tachiyomi.source.Source
@ -343,8 +342,7 @@ actual class LocalSource(
}
}
is Format.SevenZip -> {
val file = context.contentResolver.openFileDescriptor(format.file.uri, "r")
SevenZFile(AutoCloseInputStream(file).channel).use { archive ->
SevenZFile(format.file.openReadOnlyChannel(context)).use { archive ->
val entry = archive.getImages {}.firstOrNull()
entry?.let { coverManager.update(manga, it.inputStream()) }
}