[utils] Remove url_infer_protocol

This commit is contained in:
Yen Chi Hsuan 2015-04-08 21:39:34 +08:00
parent a662163fd5
commit 0a1603634b
4 changed files with 4 additions and 23 deletions

View file

@ -26,7 +26,6 @@ from ..utils import (
unsmuggle_url,
UnsupportedError,
url_basename,
url_infer_protocol,
xpath_text,
)
from .brightcove import BrightcoveIE
@ -1286,7 +1285,7 @@ class GenericIE(InfoExtractor):
r'<iframe[^>]+src="(?P<url>%s)"' % UDNEmbedIE._VALID_URL, webpage)
if mobj is not None:
return self.url_result(
url_infer_protocol(url, mobj.group('url')), 'UDNEmbed')
compat_urlparse.urljoin(url, mobj.group('url')), 'UDNEmbed')
def check_video(vurl):
if YoutubeIE.suitable(vurl):