mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-04-27 02:55:54 +00:00
add tests
Authored by: bashonly
This commit is contained in:
parent
c2daedbc0c
commit
fa59ec5686
@ -312,7 +312,12 @@ class VKIE(VKBaseIE):
|
|||||||
{
|
{
|
||||||
'url': 'https://vk.com/clip30014565_456240946',
|
'url': 'https://vk.com/clip30014565_456240946',
|
||||||
'only_matching': True,
|
'only_matching': True,
|
||||||
}]
|
},
|
||||||
|
{
|
||||||
|
'url': 'https://vkvideo.ru/video-127553155_456242961',
|
||||||
|
'only_matching': True,
|
||||||
|
},
|
||||||
|
]
|
||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
mobj = self._match_valid_url(url)
|
mobj = self._match_valid_url(url)
|
||||||
@ -533,6 +538,9 @@ class VKUserVideosIE(VKBaseIE):
|
|||||||
'title': 'Анонсы',
|
'title': 'Анонсы',
|
||||||
},
|
},
|
||||||
'playlist_mincount': 108,
|
'playlist_mincount': 108,
|
||||||
|
}, {
|
||||||
|
'url': 'https://vkvideo.ru/@mobidevices',
|
||||||
|
'only_matching': True,
|
||||||
}]
|
}]
|
||||||
_VIDEO = collections.namedtuple('Video', ['owner_id', 'id'])
|
_VIDEO = collections.namedtuple('Video', ['owner_id', 'id'])
|
||||||
|
|
||||||
@ -591,7 +599,7 @@ class VKUserVideosIE(VKBaseIE):
|
|||||||
|
|
||||||
class VKWallPostIE(VKBaseIE):
|
class VKWallPostIE(VKBaseIE):
|
||||||
IE_NAME = 'vk:wallpost'
|
IE_NAME = 'vk:wallpost'
|
||||||
_VALID_URL = r'https?://(?:(?:(?:(?:m|new)\.)?vk(?:video\.ru|\.com)/(?:[^?]+\?.*\bw=)?wall(?P<id>-?\d+_\d+)))'
|
_VALID_URL = r'https?://(?:(?:(?:(?:m|new)\.)?vk\.com/(?:[^?]+\?.*\bw=)?wall(?P<id>-?\d+_\d+)))'
|
||||||
_TESTS = [{
|
_TESTS = [{
|
||||||
# public page URL, audio playlist
|
# public page URL, audio playlist
|
||||||
'url': 'https://vk.com/bs.official?w=wall-23538238_35',
|
'url': 'https://vk.com/bs.official?w=wall-23538238_35',
|
||||||
@ -803,6 +811,9 @@ class VKPlayIE(VKPlayBaseIE):
|
|||||||
}, {
|
}, {
|
||||||
'url': 'https://live.vkplay.ru/lebwa/record/33a4e4ce-e3ef-49db-bb14-f006cc6fabc9/records',
|
'url': 'https://live.vkplay.ru/lebwa/record/33a4e4ce-e3ef-49db-bb14-f006cc6fabc9/records',
|
||||||
'only_matching': True,
|
'only_matching': True,
|
||||||
|
}, {
|
||||||
|
'url': 'https://live.vkvideo.ru/lebwa/record/33a4e4ce-e3ef-49db-bb14-f006cc6fabc9/records',
|
||||||
|
'only_matching': True,
|
||||||
}]
|
}]
|
||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
@ -845,6 +856,9 @@ class VKPlayLiveIE(VKPlayBaseIE):
|
|||||||
}, {
|
}, {
|
||||||
'url': 'https://live.vkplay.ru/lebwa',
|
'url': 'https://live.vkplay.ru/lebwa',
|
||||||
'only_matching': True,
|
'only_matching': True,
|
||||||
|
}, {
|
||||||
|
'url': 'https://live.vkvideo.ru/panterka',
|
||||||
|
'only_matching': True,
|
||||||
}]
|
}]
|
||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user