Fix bug in --download-archive

Closes #4668
This commit is contained in:
pukkandan 2022-08-16 22:00:51 +05:30
parent 6d3e7424bf
commit c200096c03
No known key found for this signature in database
GPG key ID: 7EEE9E1E817D0A39

View file

@ -3443,7 +3443,7 @@ class YoutubeDL:
return False
vid_ids = [self._make_archive_id(info_dict)]
vid_ids.extend(info_dict.get('_old_archive_ids', []))
vid_ids.extend(info_dict.get('_old_archive_ids') or [])
return any(id_ in self.archive for id_ in vid_ids)
def record_download_archive(self, info_dict):