[vk] Improve _VALID_URL (#2207)

Authored by: k3ns1n
pull/2213/head
k3ns1n 3 years ago committed by GitHub
parent 7141ced57d
commit af3cbd8782
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -90,7 +90,7 @@ class VKIE(VKBaseIE):
(?:(?:m|new)\.)?vk\.com/(?:.+?\?.*?z=)?video| (?:(?:m|new)\.)?vk\.com/(?:.+?\?.*?z=)?video|
(?:www\.)?daxab.com/embed/ (?:www\.)?daxab.com/embed/
) )
(?P<videoid>-?\d+_\d+)(?:.*\blist=(?P<list_id>[\da-f]+))? (?P<videoid>-?\d+_\d+)(?:.*\blist=(?P<list_id>([\da-f]+)|(ln-[\da-zA-Z]+)))?
) )
''' '''
_TESTS = [ _TESTS = [
@ -181,6 +181,17 @@ class VKIE(VKBaseIE):
}, },
'skip': 'Removed', 'skip': 'Removed',
}, },
{
'url': 'https://vk.com/video-93049196_456239755?list=ln-cBjJ7S4jYYx3ADnmDT',
'info_dict': {
'id': '-93049196_456239755',
'ext': 'mp4',
'title': '8 серия (озвучка)',
'duration': 8383,
'upload_date': '20211222',
'view_count': int,
},
},
{ {
# video (removed?) only available with list id # video (removed?) only available with list id
'url': 'https://vk.com/video30481095_171201961?list=8764ae2d21f14088d4', 'url': 'https://vk.com/video30481095_171201961?list=8764ae2d21f14088d4',

Loading…
Cancel
Save