Add playing argument to video unavailable error

This commit is contained in:
Androz2091 2021-02-26 13:46:44 +01:00
parent 28e3709234
commit 3cc3360595

View file

@ -1118,7 +1118,7 @@ class Player extends EventEmitter {
}) })
newStream.on('error', (error) => { newStream.on('error', (error) => {
if (error.message.includes('Video unavailable')) { if (error.message.includes('Video unavailable')) {
this.emit('error', 'VideoUnavailable', queue.firstMessage) this.emit('error', 'VideoUnavailable', queue.firstMessage, queue.playing)
this._playTrack(queue, false) this._playTrack(queue, false)
} else { } else {
this.emit('error', error, queue.firstMessage) this.emit('error', error, queue.firstMessage)