parent
a9c09a7c62
commit
c39fd7b1ca
2 changed files with 3 additions and 2 deletions
|
@ -1739,7 +1739,7 @@ class GenericIE(InfoExtractor):
|
||||||
|
|
||||||
# Look for UDN embeds
|
# Look for UDN embeds
|
||||||
mobj = re.search(
|
mobj = re.search(
|
||||||
r'<iframe[^>]+src="(?P<url>%s)"' % UDNEmbedIE._VALID_URL, webpage)
|
r'<iframe[^>]+src="(?P<url>%s)"' % UDNEmbedIE._PROTOCOL_RELATIVE_VALID_URL, webpage)
|
||||||
if mobj is not None:
|
if mobj is not None:
|
||||||
return self.url_result(
|
return self.url_result(
|
||||||
compat_urlparse.urljoin(url, mobj.group('url')), 'UDNEmbed')
|
compat_urlparse.urljoin(url, mobj.group('url')), 'UDNEmbed')
|
||||||
|
|
|
@ -12,7 +12,8 @@ from ..compat import compat_urlparse
|
||||||
|
|
||||||
class UDNEmbedIE(InfoExtractor):
|
class UDNEmbedIE(InfoExtractor):
|
||||||
IE_DESC = '聯合影音'
|
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 = [{
|
_TESTS = [{
|
||||||
'url': 'http://video.udn.com/embed/news/300040',
|
'url': 'http://video.udn.com/embed/news/300040',
|
||||||
'md5': 'de06b4c90b042c128395a88f0384817e',
|
'md5': 'de06b4c90b042c128395a88f0384817e',
|
||||||
|
|
Loading…
Reference in a new issue