From 52197a939e98c1c73afa551c863615e5cd88c258 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20H?= Date: Sat, 6 Jun 2020 10:22:10 +0200 Subject: [PATCH] remove watermark and see if it works --- src/modules/music.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/modules/music.js b/src/modules/music.js index 036b71e..91bcd95 100644 --- a/src/modules/music.js +++ b/src/modules/music.js @@ -204,8 +204,16 @@ exports.play = async function (client, message, query, playNext, ignoreQueue) { let link = exports.getLinkFromID(v.video.videoId); console.log('[MUSIC DEBUG] got link: ' + (message.guild.id == '410990517841690625' ? link : 'not woomy server')); + let y = null; + + setTimeout(() => { + if(y == null) { + console.log('[MUSIC DEBUG] y is still null'); + }; + }, 5000); + console.log('[MUSIC DEBUG] await ytdl'); - let y = await ytdl(link, { highWaterMark: 1024 * 1024 * 32 }); + y = await ytdl(link); console.log('[MUSIC DEBUG] got ytdl'); console.log('[MUSIC DEBUG] connection.play');