[streamcz] Remove empty `'{}'.format()` for Py2.6
authordirkf <fieldhouse@gmx.net>
Fri, 29 Apr 2022 12:36:02 +0000 (13:36 +0100)
committerGitHub <noreply@github.com>
Fri, 29 Apr 2022 12:36:02 +0000 (13:36 +0100)
Use `'-join()'` here, or `{0}`, ..., in general.

youtube_dl/extractor/streamcz.py

index 060ba32e0401ade6259992686e32296995343c0f..97b2eb7f8d89a67590a4f3b5b2f88a1893915bd0 100644 (file)
@@ -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']),