|
|
@ -26,7 +26,7 @@ def generate_master(playlists):
|
|
|
|
lines += [
|
|
|
|
lines += [
|
|
|
|
# We name each variant with a VIDEO rendition with no url
|
|
|
|
# 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-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,
|
|
|
|
url,
|
|
|
|
]
|
|
|
|
]
|
|
|
|
return "\n".join(lines) + '\n'
|
|
|
|
return "\n".join(lines) + '\n'
|
|
|
|