mirror of
https://github.com/yattee/yattee.git
synced 2024-12-22 21:43:41 +00:00
Fix watches
This commit is contained in:
parent
0d333b5583
commit
84e50ddd25
@ -74,16 +74,13 @@ extension PlayerModel {
|
|||||||
watch = results?.first
|
watch = results?.first
|
||||||
}
|
}
|
||||||
|
|
||||||
if self.resetWatchedStatusOnPlaying,
|
if let seconds = self.playerItemDuration?.seconds {
|
||||||
!watch.finished,
|
|
||||||
let seconds = self.playerItemDuration?.seconds
|
|
||||||
{
|
|
||||||
watch.videoDuration = seconds
|
watch.videoDuration = seconds
|
||||||
}
|
}
|
||||||
|
|
||||||
if finished {
|
if finished {
|
||||||
watch.stoppedAt = watch.videoDuration
|
watch.stoppedAt = watch.videoDuration
|
||||||
} else if seconds.isFinite, seconds > 0 {
|
} else if self.resetWatchedStatusOnPlaying, seconds.isFinite, seconds > 0 {
|
||||||
watch.stoppedAt = seconds
|
watch.stoppedAt = seconds
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user