mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-12-15 20:48:58 +00:00
[cleanup] Move embed tests to dedicated extractors (#13782)
Authored by: doe1080
This commit is contained in:
@@ -22,11 +22,7 @@ class UDNEmbedIE(InfoExtractor):
|
||||
'title': '生物老師男變女 全校挺"做自己"',
|
||||
'thumbnail': r're:^https?://.*\.jpg$',
|
||||
},
|
||||
'params': {
|
||||
# m3u8 download
|
||||
'skip_download': True,
|
||||
},
|
||||
'expected_warnings': ['Failed to parse JSON Expecting value'],
|
||||
'skip': 'Invalid URL',
|
||||
}, {
|
||||
'url': 'https://video.udn.com/embed/news/300040',
|
||||
'only_matching': True,
|
||||
@@ -35,6 +31,18 @@ class UDNEmbedIE(InfoExtractor):
|
||||
'url': 'https://video.udn.com/play/news/303776',
|
||||
'only_matching': True,
|
||||
}]
|
||||
_WEBPAGE_TESTS = [{
|
||||
# FIXME: Update _VALID_URL
|
||||
'url': 'https://video.udn.com/news/1308561',
|
||||
'info_dict': {
|
||||
'id': '1308561',
|
||||
'ext': 'mp4',
|
||||
'title': '影/丹娜絲颱風暴風圈擴大 上午8:30發布海警',
|
||||
'thumbnail': r're:https?://cdn\.udn\.com/img/.+\.jpg',
|
||||
},
|
||||
'expected_warnings': ['Failed to parse JSON'],
|
||||
'params': {'skip_download': 'm3u8'},
|
||||
}]
|
||||
|
||||
def _real_extract(self, url):
|
||||
video_id = self._match_id(url)
|
||||
|
||||
Reference in New Issue
Block a user