def thread_func(idx, ctx, fragments, info_dict, tpe):
    ctx['max_progress'] = max_progress
    ctx['progress_idx'] = idx
    return self.download_and_append_fragments(ctx, fragments, info_dict, pack_func=pack_func, finish_func=finish_func, tpe=tpe, interrupt_trigger=interrupt_trigger)
def thread_func(idx, ctx, fragments, info_dict, tpe):
    ctx['max_progress'] = max_progress
    ctx['progress_idx'] = idx
    return self.download_and_append_fragments(ctx, fragments, info_dict, pack_func=pack_func, finish_func=finish_func, tpe=tpe, interrupt_trigger=interrupt_trigger)