1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-02 17:22:31 +01:00

[vk] Improve _VALID_URL (#2207)

Authored by: k3ns1n
This commit is contained in:
k3ns1n 2022-01-02 19:14:20 +02:00 committed by GitHub
parent 7141ced57d
commit af3cbd8782
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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',