From 4bf99ade15c2b9dc0ec0ce4e6127d4cd56f87896 Mon Sep 17 00:00:00 2001 From: Yen Chi Hsuan Date: Fri, 11 Dec 2015 14:25:01 +0800 Subject: [PATCH] [vevo] Catch the georestriction message (#7802) --- youtube_dl/extractor/vevo.py | 3 +++ 1 file changed, 3 insertions(+) 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) -- 2.22.2