Bugfix on progress hook proxy method

This commit is contained in:
Totonyus 2022-05-01 22:35:37 +02:00
parent ff37bf0968
commit e583f140e8
1 changed files with 5 additions and 1 deletions

View File

@ -248,7 +248,11 @@ class DownloadManager:
def progress_hooks_proxy(self, download):
is_in_list = self.find_downloads_in_downloaded_files_list(download.get('info_dict').get('id'))
self.downloaded_files[is_in_list] = download
if is_in_list is None:
self.downloaded_files.append(download)
else:
self.downloaded_files[is_in_list] = download
if self.enable_redis is not None and self.enable_redis is True:
get_current_job().meta['downloaded_files'] = self.downloaded_files