mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
Mark Episode as Watched if progress over 90%
This commit is contained in:
parent
0a24661e4c
commit
157888d3c5
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue