feat: add BookOasis document reader and text settings
Build & Test / Build & Test App (push) Has been cancelled
Update website / update_website (release) Has been cancelled

This commit is contained in:
2026-09-19 10:58:14 +09:00
parent 5848ffb4c4
commit 4900efbca5
20 changed files with 746 additions and 7 deletions
@@ -8,7 +8,10 @@ import eu.kanade.domain.manga.model.toSManga
import eu.kanade.tachiyomi.data.cache.CoverCache
import eu.kanade.tachiyomi.data.download.DownloadManager
import eu.kanade.tachiyomi.source.Source
import eu.kanade.tachiyomi.source.bookoasis.fetchBookOasisChapters
import eu.kanade.tachiyomi.source.bookoasis.isBookOasisSource
import eu.kanade.tachiyomi.source.model.SManga
import eu.kanade.tachiyomi.source.online.HttpSource
import logcat.LogPriority
import mihon.domain.source.models.RemoteMangaUpdate
import tachiyomi.core.common.util.lang.withIOContext
@@ -70,8 +73,28 @@ class UpdateMangaFromRemote(
)
}
awaitUpdateFromSource(manga, update.manga, manualFetch)
val rawSourceChapters = if (
fetchChapters &&
source is HttpSource &&
source.isBookOasisSource()
) {
try {
withIOContext {
source.fetchBookOasisChapters(manga.toSManga())
}
} catch (e: Exception) {
logcat(LogPriority.ERROR, e) {
"BookOasis document chapter compatibility fallback failed"
}
update.chapters
}
} else {
update.chapters
}
val newChapters = syncChaptersWithSource.await(
rawSourceChapters = update.chapters,
rawSourceChapters = rawSourceChapters,
manga = manga,
source = source,
manualFetch = manualFetch,