diff options
author | Sergey M․ <dstftw@gmail.com> | 2014-04-01 19:37:57 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2014-04-01 19:38:42 +0700 |
commit | f659951e22430f3f6000a69affef36e78d583ed2 (patch) | |
tree | c9ea64c6dc90c5446f4ef93dc9d70af95cfe2157 /youtube_dl | |
parent | 5853a7316ead52fe21134b24dbcde39c4e6aa9f3 (diff) |
[vk] Support optional dash for oid in embedded links
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/extractor/vk.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/vk.py b/youtube_dl/extractor/vk.py index 3b3bec92f..8b1432fec 100644 --- a/youtube_dl/extractor/vk.py +++ b/youtube_dl/extractor/vk.py @@ -16,7 +16,7 @@ from ..utils import ( class VKIE(InfoExtractor): IE_NAME = 'vk.com' - _VALID_URL = r'https?://vk\.com/(?:video_ext\.php\?.*?\boid=(?P<oid>\d+).*?\bid=(?P<id>\d+)|(?:videos.*?\?.*?z=)?video(?P<videoid>.*?)(?:\?|%2F|$))' + _VALID_URL = r'https?://vk\.com/(?:video_ext\.php\?.*?\boid=(?P<oid>-?\d+).*?\bid=(?P<id>\d+)|(?:videos.*?\?.*?z=)?video(?P<videoid>.*?)(?:\?|%2F|$))' _NETRC_MACHINE = 'vk' _TESTS = [ |