New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
filter: 'audioonly' does not work on v1.0.2 #529
Comments
|
For this one example at least, checking |
I checked with an another video but fent verification is correct but something isn't right |
The video ID is in my snippet,
It has 23 formats available, the last 4 are audio-only but have non- |
Problem noticed, some audio formats contains |
So the fix is: |
Was using an older version in the morning (0.27), and
ytdl(<id>, {filter: 'audioonly'})
worked fine. I updated to version 1.0.2, and now I getNo formats found
.From what I can tell, this is the relevant code:
fn = (format) => !format.bitrate && format.audioBitrate;
node-ytdl-core/lib/util.js
Line 188 in df7c80b
Here are console.logs of the available formats for a particular video:
Version 0.27, note the last 4 formats have
bitrate: null
:https://gist.github.com/mahhov/632f869350ebb5a6dab64ce7715ea449
Version 1.0.2, note that now all 23 formats have a bitrate:
https://gist.github.com/mahhov/5cfa8ae7c9853f3d2cdb99fe1dabf954
The text was updated successfully, but these errors were encountered: