Fix BANDWIDTH specification in playlist

pull/328/head
ElementalAlchemist 2 years ago committed by Mike Lang
parent a6797aed19
commit e13333d2b4

@ -26,7 +26,7 @@ def generate_master(playlists):
lines += [
# We name each variant with a VIDEO rendition with no url
'#EXT-X-MEDIA:TYPE=VIDEO,GROUP-ID="{name}",NAME="{name}",AUTOSELECT=YES,DEFAULT=YES'.format(name=name),
'#EXT-X-STREAM-INF:VIDEO="{name}",NAME="{name},BANDWIDTH={bandwidth}"'.format(name=name, bandwidth=bandwidth),
'#EXT-X-STREAM-INF:VIDEO="{name}",NAME="{name}",BANDWIDTH={bandwidth}'.format(name=name, bandwidth=bandwidth),
url,
]
return "\n".join(lines) + '\n'

Loading…
Cancel
Save