From af632d794378e12de7b87c5fab68ff9c18eaa0fa Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Thu, 25 May 2023 19:03:59 +0200 Subject: [PATCH] Fix property access --- Model/HistoryModel.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Model/HistoryModel.swift b/Model/HistoryModel.swift index 33e64894..8e66b313 100644 --- a/Model/HistoryModel.swift +++ b/Model/HistoryModel.swift @@ -69,7 +69,7 @@ extension PlayerModel { let watch: Watch! - let duration = activeBackend == .mpv ? self.playerTime.duration.seconds : avPlayerBackend.playerItemDuration?.seconds ?? 0 + let duration = self.activeBackend == .mpv ? self.playerTime.duration.seconds : self.avPlayerBackend.playerItemDuration?.seconds ?? 0 if results?.isEmpty ?? true { watch = Watch(context: self.backgroundContext)