Closed makotocolors closed 1 month ago
same error here.
Same here, I think it started at 4.15.0
Since YouTube has removed nearly all formats that include both video and audio, you can utilize the ANDROID
or WEB
client to access itag 18. The default clients, IOS
and WEB_CREATOR
, do not support this format. Consider using a combination of formats for enhanced quality.
ytdl.getInfo("...", {
playerClients: ["IOS", "WEB_CREATOR", "ANDROID", "WEB"]
}).then(info => {
const formats = ytdl.filterFormats(info.formats, "videoandaudio");
console.log(formats);
});
I think the docs should be updated with this.
Since YouTube has removed nearly all formats that include both video and audio, you can utilize the
ANDROID
orWEB
client to access itag 18. The default clients,IOS
andWEB_CREATOR
, do not support this format. Consider using a combination of formats for enhanced quality.ytdl.getInfo("...", { playerClients: ["IOS", "WEB_CREATOR", "ANDROID", "WEB"] }).then(info => { const formats = ytdl.filterFormats(info.formats, "videoandaudio"); console.log(formats); });
It worked, thx
In the current implementation of the module, a bug has been identified within the filterFormats function. This bug results in the function returning an empty array when the filter is set to either "videoandaudio" or "audioandvideo." This issue was not present in earlier versions of the module; therefore, reverting to version 4.14.4 is necessary to restore the functionality of the format filtering feature. The regression in functionality affects users relying on these specific filter configurations.