def format_chunk_url(self, chunk_id):
        chunk_hash = ""
        for chunk_start in sorted(self.chunk_ranges):
            if chunk_id >= chunk_start:
                chunk_hash = self.chunk_ranges[chunk_start]

        return self.filename_format % (chunk_id, chunk_hash)
dataset/ETHPy150Open chrippa/livestreamer/src/livestreamer/plugins/ustreamtv.py/UHSStreamWorker.format_chunk_url/original