mirror of
https://github.com/yattee/yattee.git
synced 2024-12-22 13:33:42 +00:00
Update watched date at every watch
This commit is contained in:
parent
b16ded4537
commit
9949303166
@ -72,13 +72,12 @@ extension PlayerModel {
|
||||
watch.videoID = id
|
||||
} else {
|
||||
watch = results?.first
|
||||
|
||||
if !self.resetWatchedStatusOnPlaying, watch.finished {
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
if let seconds = self.playerItemDuration?.seconds {
|
||||
if self.resetWatchedStatusOnPlaying,
|
||||
!watch.finished,
|
||||
let seconds = self.playerItemDuration?.seconds
|
||||
{
|
||||
watch.videoDuration = seconds
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user