1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-25 03:32:05 +00:00

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

Use `'-join()'` here, or `{0}`, ..., in general.
This commit is contained in:
dirkf 2022-04-29 13:36:02 +01:00 committed by GitHub
parent ebc627847c
commit e27d8d819f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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']),