def _download_fragment(self, ctx, frag_url, info_dict, headers=None, request_data=None):
    fragment_filename = ('%s-Frag%d' % (ctx['tmpfilename'], ctx['fragment_index']))
    fragment_info_dict = {'url': frag_url, 'http_headers': (headers or info_dict.get('http_headers')), 'request_data': request_data, 'ctx_id': ctx.get('ctx_id')}
    (success, _) = ctx['dl'].download(fragment_filename, fragment_info_dict)
    if (not success):
        return False
    if fragment_info_dict.get('filetime'):
        ctx['fragment_filetime'] = fragment_info_dict.get('filetime')
    ctx['fragment_filename_sanitized'] = fragment_filename
    return True
def _download_fragment(self, ctx, frag_url, info_dict, headers=None, request_data=None):
    fragment_filename = ('%s-Frag%d' % (ctx['tmpfilename'], ctx['fragment_index']))
    fragment_info_dict = {'url': frag_url, 'http_headers': (headers or info_dict.get('http_headers')), 'request_data': request_data, 'ctx_id': ctx.get('ctx_id')}
    (success, _) = ctx['dl'].download(fragment_filename, fragment_info_dict)
    if (not success):
        return False
    if fragment_info_dict.get('filetime'):
        ctx['fragment_filetime'] = fragment_info_dict.get('filetime')
    ctx['fragment_filename_sanitized'] = fragment_filename
    return True