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

ERROR: YouTube said: The uploader has not made this video available in your country. #1091

Closed
andrewhilson opened this issue Jul 20, 2013 · 10 comments

Comments

@andrewhilson
Copy link

@andrewhilson andrewhilson commented Jul 20, 2013

Hi,

I can't get this to download some youtube videos. I receive the error:

ERROR: YouTube said: The uploader has not made this video available in your country.

examples:
http://www.youtube.com/watch?v=BrbxWOMpwfs
http://www.youtube.com/watch?v=LrUvu1mlWco


[root@vps scripts]# python2.7 ./youtube-dl http://www.youtube.com/watch?v=LrUvu1mlWco --max-quality 22 -x --audio-format m4a -o '/var/www/html/storage/%(id)s.%(ext)s' -v
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['http://www.youtube.com/watch?v=LrUvu1mlWco', '--max-quality', '22', '-x', '--audio-format', 'm4a', '-o', '/var/www/html/storage/%(id)s.%(ext)s', '-v']
[debug] youtube-dl version 2013.07.19
[debug] Python version 2.7.3 - Linux-2.6.18-348.el5xen-x86_64-with-redhat-5.9-Final
[debug] Proxy map: {}
[youtube] Setting language
[youtube] LrUvu1mlWco: Downloading video webpage
[youtube] LrUvu1mlWco: Downloading video info webpage
ERROR: YouTube said: The uploader has not made this video available in your country.
Traceback (most recent call last):
File "./youtube-dl/youtube_dl/YoutubeDL.py", line 312, in extract_info
ie_result = ie.extract(url)
File "./youtube-dl/youtube_dl/extractor/common.py", line 96, in extract
return self._real_extract(url)
File "./youtube-dl/youtube_dl/extractor/youtube.py", line 462, in _real_extract
raise ExtractorError(u'YouTube said: %s' % video_info['reason'][0], expected=True)
ExtractorError: YouTube said: The uploader has not made this video available in your country.

@phihag
Copy link
Contributor

@phihag phihag commented Jul 20, 2013

From which country are you testing this? Can you see the videos on the webpage?

@andrewhilson
Copy link
Author

@andrewhilson andrewhilson commented Jul 20, 2013

I tested the link in the UK and also on a Windows dedicated server I have in the USA. They both play in the web browser fine.

The script is being run from a Linux server in the same datacenter as the Windows dedicated server in the USA (and the windows server works in a web browser).

@andrewhilson
Copy link
Author

@andrewhilson andrewhilson commented Jul 24, 2013

Am i doing something wrong or is there an issue?

@andrewhilson
Copy link
Author

@andrewhilson andrewhilson commented Jul 24, 2013

@phihag
youtube-dl --version
2013.07.24.2

@phihag
Copy link
Contributor

@phihag phihag commented Jul 24, 2013

Can you see the videos from the same server? Windows and Linux machines may be routed differently. If it still works in the webbrowser (or an analogue) and on the machine, could you give me access to the problematic machine in question?

@andrewhilson
Copy link
Author

@andrewhilson andrewhilson commented Jul 24, 2013

Not sure exactly how to test if the video plays on a centos command line server. i can give you access.

@andrewhilson
Copy link
Author

@andrewhilson andrewhilson commented Jul 24, 2013

@phihag just sent you an email with login credentials

@phihag
Copy link
Contributor

@phihag phihag commented Jul 24, 2013

As I assumed, the Linux box is not recognized as being the US by YouTube, and the problem is unrelated to youtube-dl.

@chankeypathak
Copy link

@chankeypathak chankeypathak commented Oct 31, 2014

I'm from India, I can download videos from my local machine but I've a server from US which doesn't allow to download the same video. Now is there any way to bypass the country restrictions in youtube-dl or will I have to put my server in India?

@bhattjigar
Copy link

@bhattjigar bhattjigar commented Jul 3, 2016

I have similar issue i have some solution for this YouTube said: This video is available in India only.
simple youtube-dl command
youtube-dl -F https://www.youtube.com/watch?v=P4z_NkQDLRI

Solution

use proxy server from india
http_proxy="182.74.243.47:3128" youtube-dl -F https://www.youtube.com/watch?v=P4z_NkQDLRI

List of indian proxy servers with speed

http://spys.ru/free-proxy-list/IN/

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.