浏览代码

[mitele] Use compat_urllib_parse_unquote

Sergey M․ 10 年之前
父节点
当前提交
09b718c439
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      youtube_dl/extractor/mitele.py

+ 2 - 1
youtube_dl/extractor/mitele.py

@@ -5,6 +5,7 @@ import json
 from .common import InfoExtractor
 from .common import InfoExtractor
 from ..compat import (
 from ..compat import (
     compat_urllib_parse,
     compat_urllib_parse,
+    compat_urllib_parse_unquote,
     compat_urlparse,
     compat_urlparse,
 )
 )
 from ..utils import (
 from ..utils import (
@@ -48,7 +49,7 @@ class MiTeleIE(InfoExtractor):
             domain = 'http://' + domain
             domain = 'http://' + domain
         info_url = compat_urlparse.urljoin(
         info_url = compat_urlparse.urljoin(
             domain,
             domain,
-            compat_urllib_parse.unquote(embed_data['flashvars']['host'])
+            compat_urllib_parse_unquote(embed_data['flashvars']['host'])
         )
         )
         info_el = self._download_xml(info_url, episode).find('./video/info')
         info_el = self._download_xml(info_url, episode).find('./video/info')