From 825e26a81449de07e5deef0a6d71e1977d18e5cd Mon Sep 17 00:00:00 2001 From: Avi Peretz Date: Tue, 25 Dec 2018 10:44:00 +0200 Subject: [PATCH] Handle error message for vk --- youtube_dl/extractor/vk.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/youtube_dl/extractor/vk.py b/youtube_dl/extractor/vk.py index b52d15ac6..e0d691e25 100644 --- a/youtube_dl/extractor/vk.py +++ b/youtube_dl/extractor/vk.py @@ -298,7 +298,13 @@ class VKIE(VKBaseIE): # The video is not available in your region. 'url': 'https://vk.com/video-51812607_171445436', 'only_matching': True, - }] + }, + { + # Video %s is not available. + 'url': 'https://vk.com/video-173478245_456239188', + 'only_matching': True, + }, + ] def _real_extract(self, url): mobj = re.match(self._VALID_URL, url) @@ -361,6 +367,9 @@ class VKIE(VKBaseIE): r'The video .+? 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():