mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-21 20:46:36 -05:00
[vevo] Improve geo restriction detection
This commit is contained in:
parent
b80e2ebc8d
commit
621a2800ca
1 changed files with 1 additions and 1 deletions
|
@ -206,7 +206,7 @@ def _initialize_api(self, video_id):
|
|||
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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue