aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/udn.py
diff options
context:
space:
mode:
Diffstat (limited to 'yt_dlp/extractor/udn.py')
-rw-r--r--yt_dlp/extractor/udn.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/yt_dlp/extractor/udn.py b/yt_dlp/extractor/udn.py
index 4fa74b9e8..10668ac4b 100644
--- a/yt_dlp/extractor/udn.py
+++ b/yt_dlp/extractor/udn.py
@@ -13,6 +13,7 @@ class UDNEmbedIE(InfoExtractor):
IE_DESC = '聯合影音'
_PROTOCOL_RELATIVE_VALID_URL = r'//video\.udn\.com/(?:embed|play)/news/(?P<id>\d+)'
_VALID_URL = r'https?:' + _PROTOCOL_RELATIVE_VALID_URL
+ _EMBED_REGEX = [r'<iframe[^>]+src="(?:https?:)?(?P<url>%s)"' % _PROTOCOL_RELATIVE_VALID_URL]
_TESTS = [{
'url': 'http://video.udn.com/embed/news/300040',
'info_dict': {
@@ -89,8 +90,6 @@ class UDNEmbedIE(InfoExtractor):
})
formats.append(a_format)
- self._sort_formats(formats)
-
return {
'id': video_id,
'formats': formats,