aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/udn.py
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2015-11-19 22:22:57 +0800
committerYen Chi Hsuan <yan12125@gmail.com>2015-11-19 22:32:56 +0800
commitc39fd7b1ca3e81901aa28d36523fe698295e58d5 (patch)
tree61e48f31a723850c402cbe59958521cd1088480b /youtube_dl/extractor/udn.py
parenta9c09a7c62df3024b0774de7204e9262bb2d7d4a (diff)
[UDNEmbed] Fix generic UDN pages
Closes #7547
Diffstat (limited to 'youtube_dl/extractor/udn.py')
-rw-r--r--youtube_dl/extractor/udn.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/udn.py b/youtube_dl/extractor/udn.py
index 2151f8338..ee35b7227 100644
--- a/youtube_dl/extractor/udn.py
+++ b/youtube_dl/extractor/udn.py
@@ -12,7 +12,8 @@ from ..compat import compat_urlparse
class UDNEmbedIE(InfoExtractor):
IE_DESC = '聯合影音'
- _VALID_URL = r'https?://video\.udn\.com/(?:embed|play)/news/(?P<id>\d+)'
+ _PROTOCOL_RELATIVE_VALID_URL = r'//video\.udn\.com/(?:embed|play)/news/(?P<id>\d+)'
+ _VALID_URL = r'https?:' + _PROTOCOL_RELATIVE_VALID_URL
_TESTS = [{
'url': 'http://video.udn.com/embed/news/300040',
'md5': 'de06b4c90b042c128395a88f0384817e',