Skip to content

Commit fbb104e

Browse files
committed
fix: youtube extractor registration
1 parent 633ce0e commit fbb104e

4 files changed

Lines changed: 9 additions & 8 deletions

File tree

bun.lockb

-332 Bytes
Binary file not shown.

package-lock.json

Lines changed: 2 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "discord-player-bot",
3-
"version": "3.4.2",
3+
"version": "3.4.3",
44
"description": "A discord music bot built using discord.js and discord-player",
55
"main": "src/index.js",
66
"type": "module",

src/index.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,14 @@ const player = new Player(client);
2525

2626
await player.extractors.register(YoutubeiExtractor, {
2727
authentication: process.env.YT_CREDENTIAL,
28+
streamOptions: {
29+
useClient: "ANDROID",
30+
},
2831
});
2932

30-
await player.extractors.loadDefault();
33+
await player.extractors.loadDefault(
34+
(ext) => !["YouTubeExtractor"].includes(ext)
35+
);
3136

3237
// Load events
3338
await loadEvents(client);

0 commit comments

Comments
 (0)