def add_segment_url():
    segment_url = (media_template % {'Time': segment_time, 'Bandwidth': bandwidth, 'Number': segment_number})
    representation_ms_info['fragments'].append({media_location_key: segment_url, 'duration': float_or_none(segment_d, representation_ms_info['timescale'])})
def add_segment_url():
    segment_url = (media_template % {'Time': segment_time, 'Bandwidth': bandwidth, 'Number': segment_number})
    representation_ms_info['fragments'].append({media_location_key: segment_url, 'duration': float_or_none(segment_d, representation_ms_info['timescale'])})