[vevo] Improve geo restriction detection
authorSergey M․ <dstftw@gmail.com>
Sat, 14 Jan 2017 21:42:05 +0000 (04:42 +0700)
committerSergey M․ <dstftw@gmail.com>
Sat, 14 Jan 2017 21:42:05 +0000 (04:42 +0700)
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)