浏览代码

[extractor/common] strip http urls in smil manifest

remitamine 9 年之前
父节点
当前提交
c349456ef6
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      youtube_dl/extractor/common.py

+ 1 - 0
youtube_dl/extractor/common.py

@@ -1224,6 +1224,7 @@ class InfoExtractor(object):
                 continue
 
             src_url = src if src.startswith('http') else compat_urlparse.urljoin(base, src)
+            src_url = src_url.strip()
 
             if proto == 'm3u8' or src_ext == 'm3u8':
                 m3u8_formats = self._extract_m3u8_formats(