fent / node-ytdl-core

YouTube video downloader in javascript.
MIT License
4.53k stars 804 forks source link

`audioTrack` not in typescript type for `formats`, `lang` parameter ignored #1279

Open danthegoodman1 opened 8 months ago

danthegoodman1 commented 8 months ago

Version 4.11.5"

image

Also using

ytdl('https://www.youtube.com/watch?v=4FRYox-sPP8', {
  filter: "audioonly",
  quality: 'highestaudio'
})

does not give an english audio track (the docs say lang is default 'en', must not be for audio track).

Current workaround is to manually filter the info and pass that in to the function under the format property.