aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2015-12-11 14:25:01 +0800
committerYen Chi Hsuan <yan12125@gmail.com>2015-12-11 14:25:01 +0800
commit4bf99ade15c2b9dc0ec0ce4e6127d4cd56f87896 (patch)
treea44ed0c1280d87f784d05ae204df2e1443833c49 /youtube_dl/extractor
parent17b786ae73848a8f26ecc6e95947c3f65edc667f (diff)
[vevo] Catch the georestriction message (#7802)
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r--youtube_dl/extractor/vevo.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/youtube_dl/extractor/vevo.py b/youtube_dl/extractor/vevo.py
index 571289421..61813301a 100644
--- a/youtube_dl/extractor/vevo.py
+++ b/youtube_dl/extractor/vevo.py
@@ -81,6 +81,9 @@ class VevoIE(InfoExtractor):
if webpage is False:
self._oauth_token = None
else:
+ if 'THIS PAGE IS CURRENTLY UNAVAILABLE IN YOUR REGION' in webpage:
+ raise ExtractorError('%s said: This page is currently unavailable in your region.' % self.IE_NAME, expected=True)
+
self._oauth_token = self._search_regex(
r'access_token":\s*"([^"]+)"',
webpage, 'access token', fatal=False)