mirror of
https://github.com/yattee/yattee.git
synced 2024-12-13 22:00:31 +05:30
Fix replaying item
This commit is contained in:
parent
93243592a7
commit
6ce9ed3063
@ -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