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

•This website requires you to log in #4693

Closed
shubhamjsharma3lac opened this issue Jan 13, 2015 · 3 comments
Closed

•This website requires you to log in #4693

shubhamjsharma3lac opened this issue Jan 13, 2015 · 3 comments

Comments

@phihag
Copy link
Contributor

@phihag phihag commented Jan 13, 2015

It is hard to say what's happening here since this bug report is missing essential information. Please review our issue reporting guidelines. In particular, the full output of youtube-dl when called with -v would give us a hint whether extraction worked alright, and how you called youtube-dl in the first place.

Does downloading the video with youtube-dl work?

Notably, URLs are not generally accessible without the cookies extracted by youtube-dl (use --cookies cookiefile.txt to write them). Unless guaranteed otherwise, the request must also come from the same IP address. These restrictions differ from service to service. For YouTube - most likely the service in use here, although we can't say for certain without the -v output - the request generally needs to come from the same IP address, and may need to have the same cookies.

Can you elaborate how you copied over the cookies into Internet Explorer? Did you run youtube-dl on the same machine that Internet Explorer is running on?

@shubhamjsharma3lac
Copy link
Author

@shubhamjsharma3lac shubhamjsharma3lac commented Jan 13, 2015

No I had run the youtube-dl from the azure virtual machine and extracted the download link from there l.
And I am trying to use that download link for playing the videos /downloading the videos from some other machine.
can you please tell me how can I can I do this?

Sent from my Windows Phone


From: Philipp Hagemeistermailto:notifications@github.com
Sent: ‎1/‎13/‎2015 10:40 AM
To: rg3/youtube-dlmailto:youtube-dl@noreply.github.com
Cc: shubhamjsharma3lacmailto:shubhamjsharma3lac@hotmail.com
Subject: Re: [youtube-dl] •This website requires you to log in (#4693)

It is hard to say what's happening here since this bug report is missing essential information. Please review our issue reporting guidelines. In particular, the full output of youtube-dl when called with -v would give us a hint whether extraction worked alright, and how you called youtube-dl in the first place.

Does downloading the video with youtube-dl work?

Notably, URLs are not generally accessible without the cookies extracted by youtube-dl (use --cookies cookiefile.txt to write them somewhere). Unless guaranteed otherwise, the request must also come from the same IP address. These restrictions differ from service to service. For YouTube - most likely the service in use here, although we can't say for certain without the -v output - the request generally needs to come from the same IP address, and may need to have the same cookies.

Can you elaborate how you copied over the cookies into Internet Explorer? Did you run youtube-dl on the same machine that Internet Explorer is running on?


Reply to this email directly or view it on GitHub:
#4693 (comment)

@phihag phihag closed this in fbef83f Jan 13, 2015
@phihag
Copy link
Contributor

@phihag phihag commented Jan 13, 2015

I've amended our FAQ entry for this question:

I extracted a video URL with -g, but it does not play on another machine / in my webbrowser.

It depends a lot on the service. In many cases, requests for the video (to download/play it) must come from the same IP address and with the same cookies. Use the --cookies option to write the required cookies into a file, and advise your downloader to read cookies from that file. Some sites also require a common user agent to be used, use --dump-user-agent to see the one in use by youtube-dl.

It may be beneficial to use IPv6; in some cases, the restrictions are only applied to IPv4. Some services (sometimes only for a subset of videos) do not restrict the video URL by IP address, cookie, or user-agent, but these are the exception rather than the rule.

Please bear in mind that some URL protocols are not supported by browsers out of the box, including RTMP. If you are using -g, your own downloader must support these as well.

If you want to play the video on a machine that is not running youtube-dl, you can relay the video content from the machine that runs youtube-dl. You can use -o - to let youtube-dl stream a video to stdout, or simply allow the player to download the files written by youtube-dl in turn.

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.