From 3cc33605950f26488a2e0236117f31845e03446c Mon Sep 17 00:00:00 2001 From: Androz2091 Date: Fri, 26 Feb 2021 13:46:44 +0100 Subject: [PATCH] :sparkles: Add playing argument to video unavailable error --- src/Player.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Player.js b/src/Player.js index 419425e..9ea41e1 100644 --- a/src/Player.js +++ b/src/Player.js @@ -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)