This commit is contained in:
@@ -517,7 +517,7 @@ index 18d203d..02b1653 100644
|
||||
|
||||
--- a/app/src/main/kotlin/io/github/landwarderer/futon/reader/domain/DetectReaderModeUseCase.kt
|
||||
+++ b/app/src/main/kotlin/io/github/landwarderer/futon/reader/domain/DetectReaderModeUseCase.kt
|
||||
@@ -14,6 +14,7 @@
|
||||
@@ -15,6 +15,7 @@
|
||||
import io.github.landwarderer.futon.core.util.ext.printStackTraceDebug
|
||||
import org.koitharu.kotatsu.parsers.model.Manga
|
||||
import org.koitharu.kotatsu.parsers.model.MangaPage
|
||||
@@ -525,7 +525,7 @@ index 18d203d..02b1653 100644
|
||||
import org.koitharu.kotatsu.parsers.util.runCatchingCancellable
|
||||
import io.github.landwarderer.futon.reader.ui.ReaderState
|
||||
import kotlinx.coroutines.Dispatchers
|
||||
@@ -29,6 +30,7 @@
|
||||
@@ -31,6 +32,7 @@
|
||||
private val mangaRepositoryFactory: MangaRepository.Factory,
|
||||
@MangaHttpClient private val okHttpClient: OkHttpClient,
|
||||
private val imageProxyInterceptor: ImageProxyInterceptor,
|
||||
@@ -533,7 +533,7 @@ index 18d203d..02b1653 100644
|
||||
) {
|
||||
suspend operator fun invoke(manga: Manga, state: ReaderState?): ReaderMode {
|
||||
dataRepository.getReaderMode(manga.id)?.let { return it }
|
||||
@@ -57,8 +59,11 @@
|
||||
@@ -60,8 +62,11 @@
|
||||
private suspend fun guessMangaIsWebtoon(repository: MangaRepository, pages: List<MangaPage>): Boolean {
|
||||
val pageIndex = (pages.size * 0.3).roundToInt()
|
||||
val page = requireNotNull(pages.getOrNull(pageIndex)) { "No pages" }
|
||||
@@ -547,7 +547,7 @@ index 18d203d..02b1653 100644
|
||||
val size = when {
|
||||
uri.isZipUri() -> runInterruptible(Dispatchers.IO) {
|
||||
ZipFile(uri.schemeSpecificPart).use { zip ->
|
||||
@@ -75,7 +80,7 @@
|
||||
@@ -78,7 +83,7 @@
|
||||
}
|
||||
}
|
||||
else -> {
|
||||
|
||||
Reference in New Issue
Block a user