projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ebc6278
)
[streamcz] Remove empty `'{}'.format()` for Py2.6
author
dirkf
<fieldhouse@gmx.net>
Fri, 29 Apr 2022 12:36:02 +0000
(13:36 +0100)
committer
GitHub
<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
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/streamcz.py
b/youtube_dl/extractor/streamcz.py
index 060ba32e0401ade6259992686e32296995343c0f..97b2eb7f8d89a67590a4f3b5b2f88a1893915bd0 100644
(file)
--- 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']),