mirror of
https://github.com/ytdl-org/youtube-dl
synced 2024-11-24 07:06:51 +01:00
[common] Fix format_id construction for HLS
This commit is contained in:
parent
00a17a9e12
commit
e9c6cdf4a1
@ -1142,7 +1142,7 @@ class InfoExtractor(object):
|
|||||||
# Bandwidth of live streams may differ over time thus making
|
# Bandwidth of live streams may differ over time thus making
|
||||||
# format_id unpredictable. So it's better to keep provided
|
# format_id unpredictable. So it's better to keep provided
|
||||||
# format_id intact.
|
# format_id intact.
|
||||||
if last_media_name and not live:
|
if not live:
|
||||||
format_id.append(last_media_name if last_media_name else '%d' % (tbr if tbr else len(formats)))
|
format_id.append(last_media_name if last_media_name else '%d' % (tbr if tbr else len(formats)))
|
||||||
f = {
|
f = {
|
||||||
'format_id': '-'.join(format_id),
|
'format_id': '-'.join(format_id),
|
||||||
|
Loading…
Reference in New Issue
Block a user