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

Crunchyroll region issues #6797

Closed
mixedCase opened this issue Sep 8, 2015 · 8 comments
Closed

Crunchyroll region issues #6797

mixedCase opened this issue Sep 8, 2015 · 8 comments

Comments

@mixedCase
Copy link

@mixedCase mixedCase commented Sep 8, 2015

I'm using youtube-dl 2015.09.03 I just cloned from the repo and a video I can see perfectly fine in my web browser with no region issues (http://www.crunchyroll.com/himouto-umaru-chan/episode-1-umaru-and-onii-chan-682801) is rejected by youtube-dl claiming there are in fact region issues:

[Crunchyroll] Logging in
[Crunchyroll] 682801: Downloading webpage
ERROR: crunchyroll returned error: Sorry, this video is not available in your region due to licensing restrictions.

And this is running from browser: https://i.imgur.com/FrfHWzM.png

Other series I'm watching (via premium account as well) do not show this behavior.

This is my youtube-dl -v output:

[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-v']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2015.09.03
[debug] Python version 3.4.3 - Linux-4.1.6-1-ARCH-x86_64-with-arch
[debug] exe versions: ffmpeg 2.7.2, ffprobe 2.7.2, rtmpdump 2.4
[debug] Proxy map: {}
Usage: youtube-dl [OPTIONS] URL [URL...]

youtube-dl: error: You must provide at least one URL.
Type youtube-dl --help to see a list of all options.

Please let me know about any other information I could provide to help with this issue.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Sep 8, 2015

Post the output of youtube-dl -v --call-home --dump-pages --print-traffic http://www.crunchyroll.com/himouto-umaru-chan/episode-1-umaru-and-onii-chan-682801. Post output from your browser for https://yt-dl.org/ip.

@mixedCase
Copy link
Author

@mixedCase mixedCase commented Sep 8, 2015

[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-v', '--call-home', 'http://www.crunchyroll.com/himouto-umaru-chan/episode-1-umaru-and-onii-chan-682801']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2015.09.03
[debug] Python version 3.4.3 - Linux-4.1.6-1-ARCH-x86_64-with-arch
[debug] exe versions: ffmpeg 2.7.2, ffprobe 2.7.2, rtmpdump 2.4
[debug] Proxy map: {}
[debug] Public IP address: <IP>
[Crunchyroll] 682801: Downloading webpage
ERROR: crunchyroll returned error: Sorry, this video is not available in your region due to licensing restrictions.
Traceback (most recent call last):
  File "/usr/lib/python3.4/site-packages/youtube_dl/YoutubeDL.py", line 660, in extract_info
    ie_result = ie.extract(url)
  File "/usr/lib/python3.4/site-packages/youtube_dl/extractor/common.py", line 287, in extract
    return self._real_extract(url)
  File "/usr/lib/python3.4/site-packages/youtube_dl/extractor/crunchyroll.py", line 252, in _real_extract
    raise ExtractorError('crunchyroll returned error: %s' % msg['message_body'], expected=True)
youtube_dl.utils.ExtractorError: crunchyroll returned error: Sorry, this video is not available in your region due to licensing restrictions.

And both my browser and curl are returning my ip from https://yt-dl.org/ip as

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Sep 8, 2015

What countries does this video is georestricted to? Can you provide uruguay proxy?

@mixedCase
Copy link
Author

@mixedCase mixedCase commented Sep 8, 2015

Not sure on georestriction. I got these uruguayan proxies off google: http://www.proxynova.com/proxy-server-list/country-uy/

I could set up something on my computer if needed.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Sep 8, 2015

None of them work. Non-transparent proxy with IP from your region/country is required for test, ideally running right on your IP.

@mixedCase
Copy link
Author

@mixedCase mixedCase commented Sep 8, 2015

Easiest way to set-up a proxy?

@dstftw dstftw closed this in 12810c9 Sep 8, 2015
@dstftw
Copy link
Collaborator

@dstftw dstftw commented Sep 8, 2015

In private debugging session we have figured out that such behavior was caused by tricky crunchyroll logic on imposing georestriction that involves Accept-Language header. Passing * as Accept-Language for all requests seems to fix the issue.
Thanks for the report and collaboration.

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.