-
Notifications
You must be signed in to change notification settings - Fork 10.2k
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
Adds support for passing a referer. #801
Conversation
Could you post an example video? |
Yes, this video: Can only be embedded here: youtube_dl bjorn$ ./main.py http://player.vimeo.com/video/36845416 youtube_dl bjorn$ ./main.py http://player.vimeo.com/video/36845416 --referer http://guru.ijoomla.com/easyblog/entry/how-to-keep-your-videos-private-with-vimeo/ |
Ok, it works. |
No, that would require traversing the HTML page. I tested youtube-dl on a random page with a embedded youtube video and in that case the video does not download either. Downloading embedded videos via random urls would be a separate feature imho. I found this piece of text especially amusing "Today, I will explain how to keep your videos private so that no one can download them or find them on other websites." :) |
I meant what a user can do when he find that page, since there's no direct link to the video. |
And you have fixed #397, well done! |
Awesome :) A user would need to look at the html source of the page to find the link, yes. |
Can't we give some meaningful error message? |
Yes, without the |
Yeah, that seems like a good message. Shall I try to implement this or do you think you can add this yourself easily? |
No, I've already implemented this, unless someone wants something else, I'll merge it today. |
Great 👍 |
Merged, thanks! |
I noticed that Vimeo supports embedding videos that only can be accessed when watched via a specified domain. To enable users to download these videos, I added referer passing to youtube-dl. This way you can pass the required referer url to youtube-dl and the video download will succeed.