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:
parent
a816bb2c50
commit
ff54ac38cd
@ -1454,16 +1454,6 @@ class GenericIE(InfoExtractor):
|
|||||||
'description': 'md5:117c212f64b25e3d95747e5276863f7d',
|
'description': 'md5:117c212f64b25e3d95747e5276863f7d',
|
||||||
},
|
},
|
||||||
'skip': 'IE fix required; update _VALID_URL',
|
'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
|
# ✅124
|
||||||
# YoutubeIE
|
# YoutubeIE
|
||||||
|
@ -22,11 +22,7 @@ class UDNEmbedIE(InfoExtractor):
|
|||||||
'title': '生物老師男變女 全校挺"做自己"',
|
'title': '生物老師男變女 全校挺"做自己"',
|
||||||
'thumbnail': r're:^https?://.*\.jpg$',
|
'thumbnail': r're:^https?://.*\.jpg$',
|
||||||
},
|
},
|
||||||
'params': {
|
'skip': 'Invalid URL',
|
||||||
# m3u8 download
|
|
||||||
'skip_download': True,
|
|
||||||
},
|
|
||||||
'expected_warnings': ['Failed to parse JSON Expecting value'],
|
|
||||||
}, {
|
}, {
|
||||||
'url': 'https://video.udn.com/embed/news/300040',
|
'url': 'https://video.udn.com/embed/news/300040',
|
||||||
'only_matching': True,
|
'only_matching': True,
|
||||||
@ -35,6 +31,18 @@ class UDNEmbedIE(InfoExtractor):
|
|||||||
'url': 'https://video.udn.com/play/news/303776',
|
'url': 'https://video.udn.com/play/news/303776',
|
||||||
'only_matching': True,
|
'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):
|
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