frag_index = 0
for i, segment in enumerate(segments):
frag_index += 1
- if frag_index <= ctx['frag_index']:
+ if frag_index <= ctx['fragment_index']:
continue
count = 0
while count <= fragment_retries:
try:
- success = ctx['dl'].download(target_filename, {
- 'url': segment_url,
- 'http_headers': info_dict.get('http_headers'),
- })
success, frag_content = self._download_fragment(ctx, segment['url'], info_dict)
if not success:
return False