diff --git a/package.json b/package.json index 6e05dcc..d87ca60 100644 --- a/package.json +++ b/package.json @@ -89,8 +89,8 @@ "@discordjs/opus": "^0.8.0", "@discordjs/rest": "1.0.1", "@discordjs/voice": "0.17.0", - "@distube/ytdl-core": "^4.14.4", - "@distube/ytsr": "^2.0.0", + "@distube/ytdl-core": "^4.14.8", + "@distube/ytsr": "^2.0.4", "@prisma/client": "4.16.0", "@types/libsodium-wrappers": "^0.7.9", "array-shuffle": "^3.0.0", diff --git a/src/services/player.ts b/src/services/player.ts index b833022..45f1388 100644 --- a/src/services/player.ts +++ b/src/services/player.ts @@ -515,7 +515,7 @@ export default class { if (!ffmpegInput) { // Not yet cached, must download - const info = await ytdl.getInfo(song.url); + const info = await ytdl.getInfo(song.url, {playerClients: ['WEB_CREATOR', 'IOS']}); const formats = info.formats as YTDLVideoFormat[];