mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-14 22:42: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
|
package eu.kanade.tachiyomi.ui.reader.loader
|
||||||
|
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
import android.os.ParcelFileDescriptor.AutoCloseInputStream
|
|
||||||
import com.github.junrar.exception.UnsupportedRarV5Exception
|
import com.github.junrar.exception.UnsupportedRarV5Exception
|
||||||
import eu.kanade.tachiyomi.data.download.DownloadManager
|
import eu.kanade.tachiyomi.data.download.DownloadManager
|
||||||
import eu.kanade.tachiyomi.data.download.DownloadProvider
|
import eu.kanade.tachiyomi.data.download.DownloadProvider
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
package tachiyomi.source.local
|
package tachiyomi.source.local
|
||||||
|
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
import android.os.ParcelFileDescriptor.AutoCloseInputStream
|
|
||||||
import com.hippo.unifile.UniFile
|
import com.hippo.unifile.UniFile
|
||||||
import eu.kanade.tachiyomi.source.CatalogueSource
|
import eu.kanade.tachiyomi.source.CatalogueSource
|
||||||
import eu.kanade.tachiyomi.source.Source
|
import eu.kanade.tachiyomi.source.Source
|
||||||
@ -343,8 +342,7 @@ actual class LocalSource(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
is Format.SevenZip -> {
|
is Format.SevenZip -> {
|
||||||
val file = context.contentResolver.openFileDescriptor(format.file.uri, "r")
|
SevenZFile(format.file.openReadOnlyChannel(context)).use { archive ->
|
||||||
SevenZFile(AutoCloseInputStream(file).channel).use { archive ->
|
|
||||||
val entry = archive.getImages {}.firstOrNull()
|
val entry = archive.getImages {}.firstOrNull()
|
||||||
entry?.let { coverManager.update(manga, it.inputStream()) }
|
entry?.let { coverManager.update(manga, it.inputStream()) }
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user