'quiet': True,
'noprogress': True,
'ratelimit': self.params.get('ratelimit', None),
+ 'retries': self.params.get('retries', 0),
'test': self.params.get('test', False),
}
)
if s['status'] not in ('downloading', 'finished'):
return
- frag_total_bytes = s.get('total_bytes', 0)
+ frag_total_bytes = s.get('total_bytes') or 0
if s['status'] == 'finished':
state['downloaded_bytes'] += frag_total_bytes
state['frag_index'] += 1