mirror of
https://github.com/yattee/yattee.git
synced 2024-12-13 22:00:31 +05:30
Update watched date at every watch
This commit is contained in:
parent
b16ded4537
commit
9949303166
@ -72,13 +72,12 @@ extension PlayerModel {
|
|||||||
watch.videoID = id
|
watch.videoID = id
|
||||||
} else {
|
} else {
|
||||||
watch = results?.first
|
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
|
watch.videoDuration = seconds
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user