commit: 621a2800ca259399c0c010a1cbc2c56aee90228c
parent b80e2ebc8daa1ec30396cfa69836f1d96d23028f
Author: Sergey M․ <dstftw@gmail.com>
Date: Sun, 15 Jan 2017 04:42:05 +0700
[vevo] Improve geo restriction detection
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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)