aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2014-04-01 19:37:57 +0700
committerSergey M․ <dstftw@gmail.com>2014-04-01 19:38:42 +0700
commitf659951e22430f3f6000a69affef36e78d583ed2 (patch)
treec9ea64c6dc90c5446f4ef93dc9d70af95cfe2157 /youtube_dl
parent5853a7316ead52fe21134b24dbcde39c4e6aa9f3 (diff)
[vk] Support optional dash for oid in embedded links
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/vk.py2
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 = [