

def __init__(self, reader, *args, **kwargs):
    options = reader.stream.session.options
    kwargs['retries'] = options.get('hls-segment-attempts')
    kwargs['threads'] = options.get('hls-segment-threads')
    kwargs['timeout'] = options.get('hls-segment-timeout')
    SegmentedStreamWriter.__init__(self, reader, *args, **kwargs)
    self.byterange_offsets = defaultdict(int)
    self.key_data = None
    self.key_uri = None

dataset/ETHPy150Open chrippa/livestreamer/src/livestreamer/stream/hls.py HLSStreamWriter.__init__/original