mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-28 17:41:01 +01:00
[yinyuetai] Add test for h5/ part in _VALID_URL
This commit is contained in:
parent
68923e52a3
commit
e2082ea942
@ -8,7 +8,7 @@
|
|||||||
class YinYueTaiIE(InfoExtractor):
|
class YinYueTaiIE(InfoExtractor):
|
||||||
IE_NAME = 'yinyuetai:video'
|
IE_NAME = 'yinyuetai:video'
|
||||||
_VALID_URL = r'https?://v\.yinyuetai\.com/video(/h5)?/(?P<id>[0-9]+)'
|
_VALID_URL = r'https?://v\.yinyuetai\.com/video(/h5)?/(?P<id>[0-9]+)'
|
||||||
_TEST = {
|
_TESTS = [{
|
||||||
'url': 'http://v.yinyuetai.com/video/2322376',
|
'url': 'http://v.yinyuetai.com/video/2322376',
|
||||||
'md5': '6e3abe28d38e3a54b591f9f040595ce0',
|
'md5': '6e3abe28d38e3a54b591f9f040595ce0',
|
||||||
'info_dict': {
|
'info_dict': {
|
||||||
@ -17,7 +17,10 @@ class YinYueTaiIE(InfoExtractor):
|
|||||||
'title': '少女时代_PARTY_Music Video Teaser',
|
'title': '少女时代_PARTY_Music Video Teaser',
|
||||||
'creator': '少女时代',
|
'creator': '少女时代',
|
||||||
},
|
},
|
||||||
}
|
}, {
|
||||||
|
'url': 'http://v.yinyuetai.com/video/h5/2322376',
|
||||||
|
'only_matching': True,
|
||||||
|
}]
|
||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
video_id = self._match_id(url)
|
video_id = self._match_id(url)
|
||||||
|
Loading…
Reference in New Issue
Block a user