Skip to content

A feature-rich command-line audio/video downloader

[vevo] Improve geo restriction detection

Sergey M․621a2800ca25
diff --git a/youtube_dl/extractor/vevo.py b/youtube_dl/extractor/vevo.py
index d82261e5ee..f0a8075fbf 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)