浏览代码

[mitele] Fix on python 2.x

Jaime Marquínez Ferrándiz 11 年之前
父节点
当前提交
2c63ccec78
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      youtube_dl/extractor/mitele.py

+ 2 - 1
youtube_dl/extractor/mitele.py

@@ -6,6 +6,7 @@ import json
 from .common import InfoExtractor
 from .common import InfoExtractor
 from ..utils import (
 from ..utils import (
     compat_urllib_parse,
     compat_urllib_parse,
+    compat_urlparse,
     get_element_by_attribute,
     get_element_by_attribute,
     parse_duration,
     parse_duration,
     strip_jsonp,
     strip_jsonp,
@@ -43,7 +44,7 @@ class MiTeleIE(InfoExtractor):
         if not domain.startswith('http'):
         if not domain.startswith('http'):
             # only happens in telecinco.es videos
             # only happens in telecinco.es videos
             domain = 'http://' + domain
             domain = 'http://' + domain
-        info_url = compat_urllib_parse.urljoin(
+        info_url = compat_urlparse.urljoin(
             domain,
             domain,
             compat_urllib_parse.unquote(embed_data['flashvars']['host'])
             compat_urllib_parse.unquote(embed_data['flashvars']['host'])
         )
         )