1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-08-15 17:08:29 +00:00

UDNEmbedIE

This commit is contained in:
doe1080 2025-07-16 17:26:24 +09:00
parent a816bb2c50
commit ff54ac38cd
2 changed files with 13 additions and 15 deletions

View File

@ -1454,16 +1454,6 @@ class GenericIE(InfoExtractor):
'description': 'md5:117c212f64b25e3d95747e5276863f7d',
},
'skip': 'IE fix required; update _VALID_URL',
}, {
# 🔧108
# UDNEmbedIE
'url': 'https://video.udn.com/news/1308561',
'info_dict': {
'id': '300346',
'ext': 'mp4',
'title': '中一中男師變性 全校師生力挺',
},
'skip': 'IE fix required; embed detection',
}, {
# ✅124
# YoutubeIE

View File

@ -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 = [{
'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'},
'skip': 'IE fix required; update _VALID_URL',
}]
def _real_extract(self, url):
video_id = self._match_id(url)