Skip to content
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

How can I get all quality url links using youtube-dl command #3443

Closed
abdullahsyed007 opened this issue Aug 5, 2014 · 3 comments
Closed

How can I get all quality url links using youtube-dl command #3443

abdullahsyed007 opened this issue Aug 5, 2014 · 3 comments

Comments

@abdullahsyed007
Copy link

@abdullahsyed007 abdullahsyed007 commented Aug 5, 2014

I have used this command to get only one download link
"youtube-dl -g http://www.youtube.com/watch?v=CenylZLpVBg"

and used this one to get list of all quality videos
"youtube-dl -F http://www.youtube.com/watch?v=CenylZLpVBg"
how can i combine both these to get all possible quality of download links

Thanks in advance

@ghost
Copy link

@ghost ghost commented Aug 5, 2014

You can use the --dump-json option to get all the information youtube-dl extracted out of the webpage (including the download links to all quality levels). The output is a bit unreadable, so you schould use a json-beautifier.
If you plan to extract these links frequently, you could either make a feature request or write your own wrapper to automatically extract the links out of the json output of youtube-dl.

@phihag
Copy link
Contributor

@phihag phihag commented Aug 5, 2014

-f lists all formats, -f selects formats. You can simply use youtube-dl -f all -g.

But as @SyxbEaEQ2 said, most likely, the JSON output is more suitable for programmatic consumption.

@phihag phihag closed this Aug 5, 2014
@abdullahsyed007
Copy link
Author

@abdullahsyed007 abdullahsyed007 commented Aug 13, 2014

Thanks for your response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.