Mark Episode as Watched if progress over 90%

This commit is contained in:
KingLucius 2024-04-09 21:42:26 +02:00
parent 0a24661e4c
commit 157888d3c5

View file

@ -1028,6 +1028,7 @@ class GeneratorPlayer : FullScreenPlayer() {
val nextEp = percentage >= NEXT_WATCH_EPISODE_PERCENTAGE
val resumeMeta = if (nextEp) nextMeta else currentMeta
if (resumeMeta == null && nextEp) {
// remove last watched as it is the last episode and you have watched too much
when (val newMeta = currentMeta) {
@ -1081,6 +1082,7 @@ class GeneratorPlayer : FullScreenPlayer() {
}
if (meta.tvType.isAnimeOp()) isOpVisible = percentage < SKIP_OP_VIDEO_PERCENTAGE
if (nextEp) DataStoreHelper.setVideoWatchState(meta.id, VideoWatchState.Watched)
}
}