From 84e50ddd253942fb6451de4be925672070aec5b4 Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Fri, 25 Nov 2022 01:54:36 +0100 Subject: [PATCH] Fix watches --- Model/HistoryModel.swift | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Model/HistoryModel.swift b/Model/HistoryModel.swift index b647c0bc..e597b458 100644 --- a/Model/HistoryModel.swift +++ b/Model/HistoryModel.swift @@ -74,16 +74,13 @@ extension PlayerModel { watch = results?.first } - if self.resetWatchedStatusOnPlaying, - !watch.finished, - let seconds = self.playerItemDuration?.seconds - { + if let seconds = self.playerItemDuration?.seconds { watch.videoDuration = seconds } if finished { watch.stoppedAt = watch.videoDuration - } else if seconds.isFinite, seconds > 0 { + } else if self.resetWatchedStatusOnPlaying, seconds.isFinite, seconds > 0 { watch.stoppedAt = seconds }