mirror of
https://github.com/yattee/yattee.git
synced 2024-12-23 14:03:41 +00:00
Fix replaying item
This commit is contained in:
parent
4126de1fbf
commit
8f48ea71cd
@ -119,9 +119,11 @@ extension PlayerModel {
|
||||
remove(newItem)
|
||||
|
||||
currentItem = newItem
|
||||
currentItem.playbackTime = time
|
||||
|
||||
accounts.api.loadDetails(newItem, failureHandler: videoLoadFailureHandler) { newItem in
|
||||
self.playItem(newItem, at: time)
|
||||
let playTime = currentItem.shouldRestartPlaying ? CMTime.zero : time
|
||||
accounts.api.loadDetails(currentItem, failureHandler: videoLoadFailureHandler) { newItem in
|
||||
self.playItem(newItem, at: playTime)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -36,7 +36,7 @@ struct PlayerQueueItem: Hashable, Identifiable, Defaults.Serializable {
|
||||
return false
|
||||
}
|
||||
|
||||
return duration - seconds <= 10
|
||||
return duration - seconds <= 20
|
||||
}
|
||||
|
||||
var hasDetailsLoaded: Bool {
|
||||
|
Loading…
Reference in New Issue
Block a user