mirror of
https://github.com/yattee/yattee.git
synced 2024-12-13 22:00:31 +05:30
Fix ignoring loaded video details
This commit is contained in:
parent
fa0523d3c6
commit
ef1f95a3ad
@ -34,7 +34,7 @@ extension PlayerModel {
|
|||||||
.load()
|
.load()
|
||||||
.onSuccess { response in
|
.onSuccess { response in
|
||||||
if let video: Video = response.typedContent() {
|
if let video: Video = response.typedContent() {
|
||||||
guard video == self.currentVideo else {
|
guard video.videoID == self.currentVideo?.videoID else {
|
||||||
self.logger.info("ignoring loaded streams from \(instance.description) as current video has changed")
|
self.logger.info("ignoring loaded streams from \(instance.description) as current video has changed")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user