aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2017-01-15 04:42:05 +0700
committerSergey M․ <dstftw@gmail.com>2017-01-15 04:42:05 +0700
commit621a2800ca259399c0c010a1cbc2c56aee90228c (patch)
tree226526a862de05d69f946ab730a7624a62735c51
parentb80e2ebc8daa1ec30396cfa69836f1d96d23028f (diff)
[vevo] Improve geo restriction detection
-rw-r--r--youtube_dl/extractor/vevo.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/vevo.py b/youtube_dl/extractor/vevo.py
index d82261e5e..f0a8075fb 100644
--- a/youtube_dl/extractor/vevo.py
+++ b/youtube_dl/extractor/vevo.py
@@ -206,7 +206,7 @@ class VevoIE(VevoBaseIE):
note='Retrieving oauth token',
errnote='Unable to retrieve oauth token')
- if 'THIS PAGE IS CURRENTLY UNAVAILABLE IN YOUR REGION' in webpage:
+ if re.search(r'(?i)THIS PAGE IS CURRENTLY UNAVAILABLE IN YOUR REGION', webpage):
self.raise_geo_restricted(
'%s said: This page is currently unavailable in your region' % self.IE_NAME)