[vevo] Improve geo restriction detection
[youtube-dl] / youtube_dl / extractor / vevo.py
index d82261e5eec5f3c575bc48f23b23c64aa0355f83..f0a8075fbf81b7e87c76edaed7a6ab1bd90efefb 100644 (file)
@@ -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)