diff options
author | Sergey M․ <dstftw@gmail.com> | 2016-03-20 20:39:00 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2016-03-20 20:39:00 +0600 |
commit | 3e8bb9a972a377442f5f433123ea70b332248f70 (patch) | |
tree | 66e515af9957f5c4aab7f6bb0cd5eba7a6e6cd2c /youtube_dl/extractor/animeondemand.py | |
parent | daef04a4e75ccd2ff5e2d2495baa0ac9bcf75724 (diff) |
[animeondemand] Detect geo restriction
Diffstat (limited to 'youtube_dl/extractor/animeondemand.py')
-rw-r--r-- | youtube_dl/extractor/animeondemand.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/youtube_dl/extractor/animeondemand.py b/youtube_dl/extractor/animeondemand.py index 0158407f6..85306a69c 100644 --- a/youtube_dl/extractor/animeondemand.py +++ b/youtube_dl/extractor/animeondemand.py @@ -44,6 +44,10 @@ class AnimeOnDemandIE(InfoExtractor): login_page = self._download_webpage( self._LOGIN_URL, None, 'Downloading login page') + if '>Our licensing terms allow the distribution of animes only to German-speaking countries of Europe' in login_page: + self.raise_geo_restricted( + '%s is only available in German-speaking countries of Europe' % self.IE_NAME) + login_form = self._form_hidden_inputs('new_user', login_page) login_form.update({ |