Skip to content

Commit

Permalink
[vk] Improve _VALID_URL (yt-dlp#2207)
Browse files Browse the repository at this point in the history
Authored by: k3ns1n
  • Loading branch information
k3ns1n authored Jan 2, 2022
1 parent 7141ced commit af3cbd8
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion yt_dlp/extractor/vk.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class VKIE(VKBaseIE):
(?:(?:m|new)\.)?vk\.com/(?:.+?\?.*?z=)?video|
(?: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 = [
Expand Down Expand Up @@ -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',
Expand Down

0 comments on commit af3cbd8

Please sign in to comment.