diff options
| author | Sergey M․ <dstftw@gmail.com> | 2017-01-15 04:42:05 +0700 | 
|---|---|---|
| committer | Sergey M․ <dstftw@gmail.com> | 2017-01-15 04:42:05 +0700 | 
| commit | 621a2800ca259399c0c010a1cbc2c56aee90228c (patch) | |
| tree | 226526a862de05d69f946ab730a7624a62735c51 | |
| parent | b80e2ebc8daa1ec30396cfa69836f1d96d23028f (diff) | |
| download | hypervideo-pre-621a2800ca259399c0c010a1cbc2c56aee90228c.tar.lz hypervideo-pre-621a2800ca259399c0c010a1cbc2c56aee90228c.tar.xz hypervideo-pre-621a2800ca259399c0c010a1cbc2c56aee90228c.zip | |
[vevo] Improve geo restriction detection
| -rw-r--r-- | youtube_dl/extractor/vevo.py | 2 | 
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) | 
