mirror of
https://github.com/derrod/legendary.git
synced 2024-12-22 17:55:27 +00:00
[downloader] Check for success before adding to resume file
This commit is contained in:
parent
8cda65fd3e
commit
b89afeaefd
|
@ -500,7 +500,7 @@ class DLManager(Process):
|
|||
res = self.writer_result_q.get(timeout=1.0)
|
||||
self.num_tasks_processed_since_last += 1
|
||||
|
||||
if res.closed and self.resume_file:
|
||||
if res.closed and self.resume_file and res.success:
|
||||
# write last completed file to super simple resume file
|
||||
with open(self.resume_file, 'ab') as rf:
|
||||
rf.write(f'{res.filename}\n'.encode('utf-8'))
|
||||
|
|
Loading…
Reference in a new issue