Update vk.py

Second update to match URLs in test (but I think the are obsolete).
This commit is contained in:
Alex Snet 2014-06-29 16:23:14 +04:00
parent 7280671596
commit 330171adf0

View File

@ -16,7 +16,7 @@ from ..utils import (
class VKIE(InfoExtractor): class VKIE(InfoExtractor):
IE_NAME = 'vk.com' IE_NAME = 'vk.com'
_VALID_URL = r'https?://vk\.com/(?:video_ext\.php\?.*?\boid=(?P<oid>-?\d+).*?\bid=(?P<id>\d+)|(?:[a-zA-Z0-9\.-_]+?z=)?video?-(?P<videoid>[0-9_]+)(?:\?|%2F|$))' _VALID_URL = r'https?://vk\.com/(?:video_ext\.php\?.*?\boid=(?P<oid>-?\d+).*?\bid=(?P<id>\d+)|(?:.+?z=)?video-?)?(?P<videoid>[0-9_]+)?(?:\?|%2F|$)?'
_NETRC_MACHINE = 'vk' _NETRC_MACHINE = 'vk'
_TESTS = [ _TESTS = [