Pass ytdlOptions for ytdlGetInfo
This commit is contained in:
parent
94ffd93cde
commit
c818bd5e8d
1 changed files with 1 additions and 1 deletions
|
@ -224,7 +224,7 @@ class Player extends EventEmitter<PlayerEvents> {
|
|||
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, {
|
||||
|
|
Loading…
Reference in a new issue