aboutsummaryrefslogtreecommitdiffstats
path: root/hypervideo_dl/extractor/udn.py
diff options
context:
space:
mode:
Diffstat (limited to 'hypervideo_dl/extractor/udn.py')
-rw-r--r--hypervideo_dl/extractor/udn.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/hypervideo_dl/extractor/udn.py b/hypervideo_dl/extractor/udn.py
index 2c8e5c7..10668ac 100644
--- a/hypervideo_dl/extractor/udn.py
+++ b/hypervideo_dl/extractor/udn.py
@@ -1,6 +1,3 @@
-# coding: utf-8
-from __future__ import unicode_literals
-
import re
from .common import InfoExtractor
@@ -16,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': {
@@ -92,8 +90,6 @@ class UDNEmbedIE(InfoExtractor):
})
formats.append(a_format)
- self._sort_formats(formats)
-
return {
'id': video_id,
'formats': formats,