Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Unavailable in your country because GEMA :) #4051
Comments
|
Are you by any chance using a proxy? If so, Youtube will pick up the country of the proxy you're using. |
|
Nope. No proxy whatsoever. ( I tried using proxychains to get it to work and it worked via tor ) |
|
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.
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. |
|
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. |
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. |
|
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. |
|
FYI: The Url opened from germany results in the famous (at least in germany) GEMA screen on YouTube. |
|
Sorry for the late response.
Any way I can force it to use ipv4 ? |
|
Yup. It's my tunnel's fault :) I need a way to make youtube-dl use ipv4 forced. |
|
Please see #3626 for that. This issue is resolved, it can be closed. |
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.