Fix updating watch on AVPlayer

This commit is contained in:
Arkadiusz Fal 2023-05-25 17:20:33 +02:00
parent 4d70c8a3c3
commit 7c24a86a6a

View File

@ -69,7 +69,7 @@ extension PlayerModel {
let watch: Watch!
let duration = self.playerTime.duration.seconds
let duration = activeBackend == .mpv ? self.playerTime.duration.seconds : avPlayerBackend.playerItemDuration?.seconds ?? 0
if results?.isEmpty ?? true {
watch = Watch(context: self.backgroundContext)