diff options
author | Sergey M․ <dstftw@gmail.com> | 2016-02-02 00:52:37 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2016-02-02 00:52:37 +0600 |
commit | 0436157b95ddd6d7c415549ba48b7c0305b2c0df (patch) | |
tree | b6acd089577dccef3fdfe5a1305c7f377ef830f4 /youtube_dl | |
parent | ae0db349c16a205ec571c388239999873be4d7ba (diff) |
[vk:uservideos] Improve _VALID_URL (Closes #8389)
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/extractor/vk.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/youtube_dl/extractor/vk.py b/youtube_dl/extractor/vk.py index 90557fa61..11014865a 100644 --- a/youtube_dl/extractor/vk.py +++ b/youtube_dl/extractor/vk.py @@ -321,7 +321,7 @@ class VKIE(InfoExtractor): class VKUserVideosIE(InfoExtractor): IE_NAME = 'vk:uservideos' IE_DESC = "VK - User's Videos" - _VALID_URL = r'https?://vk\.com/videos(?P<id>-?[0-9]+)$' + _VALID_URL = r'https?://vk\.com/videos(?P<id>-?[0-9]+)(?!\?.*\bz=video)(?:[/?#&]|$)' _TEMPLATE_URL = 'https://vk.com/videos' _TESTS = [{ 'url': 'http://vk.com/videos205387401', @@ -333,6 +333,9 @@ class VKUserVideosIE(InfoExtractor): }, { 'url': 'http://vk.com/videos-77521', 'only_matching': True, + }, { + 'url': 'http://vk.com/videos-97664626?section=all', + 'only_matching': True, }] def _real_extract(self, url): |