Reset playerclients for ytdl during getinfo to defaults

Update ytdl-core and ytsr
This commit is contained in:
Juan Carlos Ramirez 2025-01-20 03:37:25 -06:00
parent 6ec6bb8aae
commit afbc570c81
2 changed files with 3 additions and 3 deletions

View file

@ -89,8 +89,8 @@
"@discordjs/opus": "^0.8.0", "@discordjs/opus": "^0.8.0",
"@discordjs/rest": "1.0.1", "@discordjs/rest": "1.0.1",
"@discordjs/voice": "0.17.0", "@discordjs/voice": "0.17.0",
"@distube/ytdl-core": "^4.14.4", "@distube/ytdl-core": "^4.14.8",
"@distube/ytsr": "^2.0.0", "@distube/ytsr": "^2.0.4",
"@prisma/client": "4.16.0", "@prisma/client": "4.16.0",
"@types/libsodium-wrappers": "^0.7.9", "@types/libsodium-wrappers": "^0.7.9",
"array-shuffle": "^3.0.0", "array-shuffle": "^3.0.0",

View file

@ -515,7 +515,7 @@ export default class {
if (!ffmpegInput) { if (!ffmpegInput) {
// Not yet cached, must download // 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[]; const formats = info.formats as YTDLVideoFormat[];