mirror of
https://github.com/yattee/yattee.git
synced 2025-08-09 20:24:06 +00:00
Fix updating watch on AVPlayer
This commit is contained in:
@@ -69,7 +69,7 @@ extension PlayerModel {
|
|||||||
|
|
||||||
let watch: Watch!
|
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 {
|
if results?.isEmpty ?? true {
|
||||||
watch = Watch(context: self.backgroundContext)
|
watch = Watch(context: self.backgroundContext)
|
||||||
|
Reference in New Issue
Block a user