1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-07-19 19:52:35 +02:00

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 @@ def in_download_archive(self, info_dict):
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):