format 'highest' doesn't always return both video and audio
- Dominant language
- JavaScript
- Stars
- 4.7k
- Forks
- 852
- PR merge metrics
- No merged PRs in 30d
Description
ytdl() chooses the format 'highest' by default, which according to the README prefers both video and audio.
The selector for highest currently just chooses formats[0]. Normally, this is itag 18, so it's fine.
However, for some videos, it's itag 303 (1080p HFR video with no audio), seemingly not what 'highest' should select.
One such video with this behavior is https://www.youtube.com/watch?v=5LJcTyMpQhY.
For other videos, the itag may vary in a different way; I haven't yet done extended testing of videos.
This appears to be unexpected behavior; is that the case? If so, should it be patched in some way?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.