From: dirkf Date: Fri, 29 Apr 2022 12:36:02 +0000 (+0100) Subject: [streamcz] Remove empty `'{}'.format()` for Py2.6 X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=e27d8d819fa69d5714ea1682a1d5d56f617461fc;p=youtube-dl [streamcz] Remove empty `'{}'.format()` for Py2.6 Use `'-join()'` here, or `{0}`, ..., in general. --- diff --git a/youtube_dl/extractor/streamcz.py b/youtube_dl/extractor/streamcz.py index 060ba32e0..97b2eb7f8 100644 --- a/youtube_dl/extractor/streamcz.py +++ b/youtube_dl/extractor/streamcz.py @@ -62,7 +62,7 @@ class StreamCZIE(InfoExtractor): if not stream.get('url'): continue yield merge_dicts({ - 'format_id': '{}-{}'.format(format_id, ext), + 'format_id': '-'.join((format_id, ext)), 'ext': ext, 'source_preference': pref, 'url': urljoin(spl_url, stream['url']),