1
0
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:
Arkadiusz Fal 2022-11-19 14:39:05 +01:00
parent b16ded4537
commit 9949303166

View File

@ -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
}