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

Valid/invalid googlevideo.com URLs #6444

Closed
jonathanasquier opened this issue Aug 3, 2015 · 6 comments
Closed

Valid/invalid googlevideo.com URLs #6444

jonathanasquier opened this issue Aug 3, 2015 · 6 comments

Comments

@jonathanasquier
Copy link

@jonathanasquier jonathanasquier commented Aug 3, 2015

Hi,
I have 2 identical VMs (Ubuntu 14.04, same config, mapped ports, everything) with 2 identical latest youtube-dl version
I do :

 youtube-dl https://youtu.be/YOUTUBE_ID --get-url -f best

Works well on one (on my local dev machine too), 403 forbidden on the other one. (Same behaviour with other youtube-dl versions)

Am I missing something? Could something prevent the other identical VM to work properly?

Thanks a lot!

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Aug 3, 2015

The urls you get with youtube-dl are only guaranteed to work from the same IP and with the same cookies. Please explain how you try to download the videos, does youtube-dl URL -f best correctly download the video?

@jonathanasquier
Copy link
Author

@jonathanasquier jonathanasquier commented Aug 3, 2015

Interessing, on the failing VM youtube-dl URL -f best downloads the video properly, and wgeting the URL works the same way.
But requesting the URL on another IP always fails when generated from the 1st VM, and always work when generated from the 2nd VM... (I have an API/client app architecture, my VMs are production and pre-production)

Sorcery? :P

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Aug 3, 2015

As already mentioned by @jaimeMF final download URLs are not guaranteed to work on another machine/IP apart from where it has been extracted. More on this.

@dstftw dstftw closed this Aug 3, 2015
@jonathanasquier
Copy link
Author

@jonathanasquier jonathanasquier commented Aug 3, 2015

Okay... just thought is was strange it had a different behaviour with the same URL... I believe I'm gonna have to deal with it!

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Aug 3, 2015

In addition, you can probably track these URLs with this approach to apply different scenario for them.

@jonathanasquier
Copy link
Author

@jonathanasquier jonathanasquier commented Aug 3, 2015

Interesting, gcr=ie in the "failing" urls gcr=us in "working" urls, matches the VM's IP country obviously, but still no work around for me right now :) thanks!

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