From: Sergey M․ Date: Sat, 14 Jan 2017 21:42:05 +0000 (+0700) Subject: [vevo] Improve geo restriction detection X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=621a2800ca259399c0c010a1cbc2c56aee90228c;p=youtube-dl [vevo] Improve geo restriction detection --- 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)