X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=youtube_dl%2Fextractor%2Fvk.py;h=d1fe956544d25eaa99b2d80c5e0a480976e809b5;hb=067aa17edf5a46a8cbc4d6b90864eddf051fa2bc;hp=ef8b9bcb7b610c25925ed2725a8bb43d8f3a6d1c;hpb=ad1bc71a8a448583734b313bc77a2097200ad97b;p=youtube-dl diff --git a/youtube_dl/extractor/vk.py b/youtube_dl/extractor/vk.py index ef8b9bcb7..d1fe95654 100644 --- a/youtube_dl/extractor/vk.py +++ b/youtube_dl/extractor/vk.py @@ -50,7 +50,7 @@ class VKBaseIE(InfoExtractor): # https://new.vk.com/ serves two same remixlhk cookies in Set-Cookie header # and expects the first one to be set rather than second (see - # https://github.com/rg3/youtube-dl/issues/9841#issuecomment-227871201). + # https://github.com/ytdl-org/youtube-dl/issues/9841#issuecomment-227871201). # As of RFC6265 the newer one cookie should be set into cookie store # what actually happens. # We will workaround this VK issue by resetting the remixlhk cookie to @@ -293,8 +293,12 @@ class VKIE(VKBaseIE): # This video is no longer available, because its author has been blocked. 'url': 'https://vk.com/video-10639516_456240611', 'only_matching': True, - } - ] + }, + { + # The video is not available in your region. + 'url': 'https://vk.com/video-51812607_171445436', + 'only_matching': True, + }] def _real_extract(self, url): mobj = re.match(self._VALID_URL, url) @@ -354,6 +358,9 @@ class VKIE(VKBaseIE): r'This video is no longer available, because it has been deleted.': 'Video %s is no longer available, because it has been deleted.', + + r'The video .+? is not available in your region.': + 'Video %s is not available in your region.', } for error_re, error_msg in ERRORS.items():