From c818bd5e8d5730ae391d93a3fec4f0dfbd92a785 Mon Sep 17 00:00:00 2001 From: Umut Date: Mon, 11 Oct 2021 23:42:17 +0200 Subject: [PATCH] Pass ytdlOptions for ytdlGetInfo --- src/Player.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Player.ts b/src/Player.ts index 2e3bbfc..85b4c71 100644 --- a/src/Player.ts +++ b/src/Player.ts @@ -224,7 +224,7 @@ class Player extends EventEmitter { const qt = options.searchEngine === QueryType.AUTO ? QueryResolver.resolve(query) : options.searchEngine; switch (qt) { case QueryType.YOUTUBE_VIDEO: { - const info = await ytdlGetInfo(query).catch(Util.noop); + const info = await ytdlGetInfo(query, this.options.ytdlOptions).catch(Util.noop); if (!info) return { playlist: null, tracks: [] }; const track = new Track(this, {