mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-14 14:32:49 +01:00
actually forgot about this one
This commit is contained in:
parent
fa550e465b
commit
2003987229
@ -1,7 +1,6 @@
|
||||
package eu.kanade.tachiyomi.ui.reader.loader
|
||||
|
||||
import android.content.Context
|
||||
import android.os.ParcelFileDescriptor.AutoCloseInputStream
|
||||
import com.github.junrar.exception.UnsupportedRarV5Exception
|
||||
import eu.kanade.tachiyomi.data.download.DownloadManager
|
||||
import eu.kanade.tachiyomi.data.download.DownloadProvider
|
||||
|
@ -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()) }
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user