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

Direct download links on website UI #8527

Closed
ladislavczech opened this issue Feb 12, 2016 · 5 comments
Closed

Direct download links on website UI #8527

ladislavczech opened this issue Feb 12, 2016 · 5 comments

Comments

@ladislavczech
Copy link

@ladislavczech ladislavczech commented Feb 12, 2016

Hi guys, I need your help. I need downloader to my website. I do not want to download videos on my server. How I can provide on youtube-dl direct links to my site users? I have a web UI on my web, but system downloading videos to my server. I want every user to download videos directly to each PC. not on my server. thank you very much for help :-)

@hemratna
Copy link

@hemratna hemratna commented Feb 12, 2016

@ladislavczech Hi,
Even I am also looking for some solution, But NOT ABLE TO FIND IT.

But as you can see http://en.savefrom.net/#url=http://youtube.com/watch?v=iWaFAIRWsA4&utm_source=youtube.com&utm_medium=short_domains&utm_campaign=ssyoutube.com is doing the same thing.

If anybody can help to implement this, It is really great help.

@kidol
Copy link
Contributor

@kidol kidol commented Feb 12, 2016

Call youtube-dl like this:

youtube-dl -j URL

It will output json string (it will NOT download). Look at this json string. It contains "formats" key which contains all the direct url's and further informations about the format (like resolution: 720p etc...).

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Feb 12, 2016

Use -g option to extract final download URL. However this won't work in some cases.

@dstftw dstftw closed this Feb 12, 2016
@hemratna
Copy link

@hemratna hemratna commented Feb 14, 2016

@kidol Thank for your reply.
As you suggest -j dump json, But when some once click on that link it will open in browser(Chrome).
But I need to force download video to client side as you can http://en.savefrom.net/#url=http://youtube.com/watch?v=iWaFAIRWsA4&utm_source=youtube.com&utm_medium=short_domains&utm_campaign=ssyoutube.co (http://i.imgur.com/PyO1cTJ.jpg)

I can write code in php to force download, But Is there any way from where I can get direct url to download.

@kidol
Copy link
Contributor

@kidol kidol commented Feb 14, 2016

In case of YouTube, you can append "&title=something" to force the download.

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
4 participants
You can’t perform that action at this time.