From 62a56cb8567836e61052a101be9b7710b1bb9fe9 Mon Sep 17 00:00:00 2001 From: Androz2091 Date: Sat, 26 Dec 2020 22:26:49 +0100 Subject: [PATCH] :sparkles: Add new error type --- src/Player.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Player.js b/src/Player.js index 037e431..a48973f 100644 --- a/src/Player.js +++ b/src/Player.js @@ -331,6 +331,7 @@ class Player extends EventEmitter { trackToPlay = query } else if (this.util.isYTVideoLink(query)) { const videoData = await ytdl.getBasicInfo(query) + if (videoData.videoDetails.isLiveContent) return this.emit('error', 'LiveVideo', message) const lastThumbnail = videoData.videoDetails.thumbnails.length - 1 /* get the highest quality thumbnail */ trackToPlay = new Track({ title: videoData.videoDetails.title,