✨ Add playing argument to video unavailable error
This commit is contained in:
parent
28e3709234
commit
3cc3360595
1 changed files with 1 additions and 1 deletions
|
@ -1118,7 +1118,7 @@ class Player extends EventEmitter {
|
|||
})
|
||||
newStream.on('error', (error) => {
|
||||
if (error.message.includes('Video unavailable')) {
|
||||
this.emit('error', 'VideoUnavailable', queue.firstMessage)
|
||||
this.emit('error', 'VideoUnavailable', queue.firstMessage, queue.playing)
|
||||
this._playTrack(queue, false)
|
||||
} else {
|
||||
this.emit('error', error, queue.firstMessage)
|
||||
|
|
Loading…
Reference in a new issue