A feature-rich command-line audio/video downloader
[vevo] Catch the georestriction message (#7802)
Yen Chi Hsuan4bf99ade15c2
diff --git a/youtube_dl/extractor/vevo.py b/youtube_dl/extractor/vevo.pyindex 571289421e..61813301a8 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 = Noneelse:+ 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)