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

Unavailable in your country because GEMA :) #4051

Closed
d3xt3r01 opened this issue Oct 28, 2014 · 10 comments
Closed

Unavailable in your country because GEMA :) #4051

d3xt3r01 opened this issue Oct 28, 2014 · 10 comments

Comments

@d3xt3r01
Copy link

@d3xt3r01 d3xt3r01 commented Oct 28, 2014

Hello,

I just got this error message ( altough I can view the video just fine even not logged in ):

[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['https://www.youtube.com/watch?v=-0zo3vbqJOE', '--verbose']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2014.10.25-gentoo_no_offensive_sites
[debug] Python version 2.7.7 - Linux-3.16.0-aufs-x86_64-Intel-R-_Core-TM-i5-4250U_CPU@_1.30GHz-with-gentoo-2.2
[debug] Proxy map: {}
[youtube] Confirming age
[youtube] -0zo3vbqJOE: Downloading webpage
[youtube] -0zo3vbqJOE: Downloading video info webpage
ERROR: -0zo3vbqJOE: YouTube said: Unfortunately, this video is not available in your country because it could contain music, for which we could not agree on conditions of use with GEMA.
Traceback (most recent call last):
File "/usr/lib64/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 528, in extract_info
ie_result = ie.extract(url)
File "/usr/lib64/python2.7/site-packages/youtube_dl/extractor/common.py", line 197, in extract
return self._real_extract(url)
File "/usr/lib64/python2.7/site-packages/youtube_dl/extractor/youtube.py", line 712, in _real_extract
expected=True, video_id=video_id)
ExtractorError: -0zo3vbqJOE: YouTube said: Unfortunately, this video is not available in your country because it could contain music, for which we could not agree on conditions of use with GEMA.

@iggyvolz
Copy link

@iggyvolz iggyvolz commented Oct 28, 2014

Are you by any chance using a proxy? If so, Youtube will pick up the country of the proxy you're using.

@d3xt3r01
Copy link
Author

@d3xt3r01 d3xt3r01 commented Oct 28, 2014

Nope. No proxy whatsoever.

( I tried using proxychains to get it to work and it worked via tor )

@iggyvolz
Copy link

@iggyvolz iggyvolz commented Oct 28, 2014

Did a little research and it seems that GEMA is a german licensing group. Seems like Youtube is picking you up as German but not for your web browser. My guess is that your IP is detected as German but your internet browser has some sort of feature to detect your location and I have no idea how to fix that.

2014.10.25-gentoo_no_offensive_sites

Probably unlikely to help, but there's a newer version of youtube_dl... you may wish to update and try again. Not sure what the gentoo thing is but I'll look into that and see if it would cause the problem.

@d3xt3r01
Copy link
Author

@d3xt3r01 d3xt3r01 commented Oct 28, 2014

The full message in case it matters is this:

ERROR: -0zo3vbqJOE: YouTube said: Unfortunately, this video is not available in your country because it could contain music, for which we could not agree on conditions of use with GEMA.

Also, I'm not in germany either :) Hehe.

Also, I have "Do not allow any site to track your physical location" disabled in my chrome browser.

Let me know if there's anything I can help you test.

@iggyvolz
Copy link

@iggyvolz iggyvolz commented Oct 28, 2014

Do not allow any site to track your physical location

That's probably why it's working in Chrome. Try turning that off or using a different browser, and you should not be able to access the video.

If you are then unable to access the video, that's something you would have to take up with Youtube unless youtube-dl worked on a "hide my location"-esque feature.

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Oct 28, 2014

If you are using the same connection for youtube-dl and the browser, that's a weird behaviour.

About the Chrome option, I think it only applies for the javascript api for getting your location, once you get a webpage from a server they know your ip and can know your location (just look in duckduckgo). Unless you use a proxy or tor, of course.

@kkcosmo
Copy link

@kkcosmo kkcosmo commented Oct 29, 2014

FYI: The Url opened from germany results in the famous (at least in germany) GEMA screen on YouTube.

@d3xt3r01
Copy link
Author

@d3xt3r01 d3xt3r01 commented Oct 29, 2014

Sorry for the late response.

  1. yes .. I think the chrome location option thing is refering to the js/html5 location stuff
  2. I'm using the same connection for both ( youtube-dl && chromium )
  3. .. hmm .. I just thought of something .. ipv4/ipv6 .. my ipv6 is routed through a tunnel in frankfurt :)

Any way I can force it to use ipv4 ?

@d3xt3r01
Copy link
Author

@d3xt3r01 d3xt3r01 commented Oct 29, 2014

Yup. It's my tunnel's fault :) I need a way to make youtube-dl use ipv4 forced.

@iggyvolz
Copy link

@iggyvolz iggyvolz commented Oct 29, 2014

Please see #3626 for that.

This issue is resolved, it can be closed.

@jaimeMF jaimeMF closed this Oct 29, 2014
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.