Handle error message for vk
This commit is contained in:
parent
63529e935c
commit
825e26a814
@ -298,7 +298,13 @@ class VKIE(VKBaseIE):
|
|||||||
# The video is not available in your region.
|
# The video is not available in your region.
|
||||||
'url': 'https://vk.com/video-51812607_171445436',
|
'url': 'https://vk.com/video-51812607_171445436',
|
||||||
'only_matching': True,
|
'only_matching': True,
|
||||||
}]
|
},
|
||||||
|
{
|
||||||
|
# Video %s is not available.
|
||||||
|
'url': 'https://vk.com/video-173478245_456239188',
|
||||||
|
'only_matching': True,
|
||||||
|
},
|
||||||
|
]
|
||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
mobj = re.match(self._VALID_URL, url)
|
mobj = re.match(self._VALID_URL, url)
|
||||||
@ -361,6 +367,9 @@ class VKIE(VKBaseIE):
|
|||||||
|
|
||||||
r'<!>The video .+? is not available in your region.':
|
r'<!>The video .+? is not available in your region.':
|
||||||
'Video %s is not available in your region.',
|
'Video %s is not available in your region.',
|
||||||
|
|
||||||
|
r'<!>The video .+? is unavailable':
|
||||||
|
'Video %s is not available.',
|
||||||
}
|
}
|
||||||
|
|
||||||
for error_re, error_msg in ERRORS.items():
|
for error_re, error_msg in ERRORS.items():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user