浏览代码

[streamcz] Remove empty `'{}'.format()` for Py2.6

Use `'-join()'` here, or `{0}`, ..., in general.
dirkf 3 年之前
父节点
当前提交
e27d8d819f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      youtube_dl/extractor/streamcz.py

+ 1 - 1
youtube_dl/extractor/streamcz.py

@@ -62,7 +62,7 @@ class StreamCZIE(InfoExtractor):
                 if not stream.get('url'):
                 if not stream.get('url'):
                     continue
                     continue
                 yield merge_dicts({
                 yield merge_dicts({
-                    'format_id': '{}-{}'.format(format_id, ext),
+                    'format_id': '-'.join((format_id, ext)),
                     'ext': ext,
                     'ext': ext,
                     'source_preference': pref,
                     'source_preference': pref,
                     'url': urljoin(spl_url, stream['url']),
                     'url': urljoin(spl_url, stream['url']),