From af3cbd878282c05e83b6ab2628d83a85c9837eec Mon Sep 17 00:00:00 2001 From: k3ns1n <44774466+k3ns1n@users.noreply.github.com> Date: Sun, 2 Jan 2022 19:14:20 +0200 Subject: [PATCH] [vk] Improve _VALID_URL (#2207) Authored by: k3ns1n --- yt_dlp/extractor/vk.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/yt_dlp/extractor/vk.py b/yt_dlp/extractor/vk.py index 5cdb1542dd..27f4e7a28f 100644 --- a/yt_dlp/extractor/vk.py +++ b/yt_dlp/extractor/vk.py @@ -90,7 +90,7 @@ class VKIE(VKBaseIE): (?:(?:m|new)\.)?vk\.com/(?:.+?\?.*?z=)?video| (?:www\.)?daxab.com/embed/ ) - (?P-?\d+_\d+)(?:.*\blist=(?P[\da-f]+))? + (?P-?\d+_\d+)(?:.*\blist=(?P([\da-f]+)|(ln-[\da-zA-Z]+)))? ) ''' _TESTS = [ @@ -181,6 +181,17 @@ class VKIE(VKBaseIE): }, '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 'url': 'https://vk.com/video30481095_171201961?list=8764ae2d21f14088d4',