mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-28 07:36:52 +01:00
[vk] Extend _VALID_URLs to support new domain (Closes #9981)
This commit is contained in:
parent
7a1e71575e
commit
bdafd88da0
@ -27,12 +27,12 @@ class VKIE(InfoExtractor):
|
|||||||
https?://
|
https?://
|
||||||
(?:
|
(?:
|
||||||
(?:
|
(?:
|
||||||
(?:m\.)?vk\.com/video_|
|
(?:(?:m|new)\.)?vk\.com/video_|
|
||||||
(?:www\.)?daxab.com/
|
(?:www\.)?daxab.com/
|
||||||
)
|
)
|
||||||
ext\.php\?(?P<embed_query>.*?\boid=(?P<oid>-?\d+).*?\bid=(?P<id>\d+).*)|
|
ext\.php\?(?P<embed_query>.*?\boid=(?P<oid>-?\d+).*?\bid=(?P<id>\d+).*)|
|
||||||
(?:
|
(?:
|
||||||
(?:m\.)?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]+))?
|
||||||
@ -182,6 +182,10 @@ class VKIE(InfoExtractor):
|
|||||||
# pladform embed
|
# pladform embed
|
||||||
'url': 'https://vk.com/video-76116461_171554880',
|
'url': 'https://vk.com/video-76116461_171554880',
|
||||||
'only_matching': True,
|
'only_matching': True,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'url': 'http://new.vk.com/video205387401_165548505',
|
||||||
|
'only_matching': True,
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
@ -354,7 +358,7 @@ def _real_extract(self, url):
|
|||||||
class VKUserVideosIE(InfoExtractor):
|
class VKUserVideosIE(InfoExtractor):
|
||||||
IE_NAME = 'vk:uservideos'
|
IE_NAME = 'vk:uservideos'
|
||||||
IE_DESC = "VK - User's Videos"
|
IE_DESC = "VK - User's Videos"
|
||||||
_VALID_URL = r'https?://vk\.com/videos(?P<id>-?[0-9]+)(?!\?.*\bz=video)(?:[/?#&]|$)'
|
_VALID_URL = r'https?://(?:(?:m|new)\.)?vk\.com/videos(?P<id>-?[0-9]+)(?!\?.*\bz=video)(?:[/?#&]|$)'
|
||||||
_TEMPLATE_URL = 'https://vk.com/videos'
|
_TEMPLATE_URL = 'https://vk.com/videos'
|
||||||
_TESTS = [{
|
_TESTS = [{
|
||||||
'url': 'http://vk.com/videos205387401',
|
'url': 'http://vk.com/videos205387401',
|
||||||
@ -369,6 +373,12 @@ class VKUserVideosIE(InfoExtractor):
|
|||||||
}, {
|
}, {
|
||||||
'url': 'http://vk.com/videos-97664626?section=all',
|
'url': 'http://vk.com/videos-97664626?section=all',
|
||||||
'only_matching': True,
|
'only_matching': True,
|
||||||
|
}, {
|
||||||
|
'url': 'http://m.vk.com/videos205387401',
|
||||||
|
'only_matching': True,
|
||||||
|
}, {
|
||||||
|
'url': 'http://new.vk.com/videos205387401',
|
||||||
|
'only_matching': True,
|
||||||
}]
|
}]
|
||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
|
Loading…
Reference in New Issue
Block a user