From 1e8fe57e5cd0f33f940df87430d75e1230ec5b7a Mon Sep 17 00:00:00 2001 From: pukkandan Date: Wed, 13 Jul 2022 15:03:05 +0530 Subject: [extractor] Support multiple archive ids for one video (#4307) Closes #4352 --- yt_dlp/YoutubeDL.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'yt_dlp/YoutubeDL.py') diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py index f6f97b8ec..14823a4c6 100644 --- a/yt_dlp/YoutubeDL.py +++ b/yt_dlp/YoutubeDL.py @@ -3455,11 +3455,9 @@ class YoutubeDL: if fn is None: return False - vid_id = self._make_archive_id(info_dict) - if not vid_id: - return False # Incomplete video information - - return vid_id in self.archive + vid_ids = [self._make_archive_id(info_dict)] + vid_ids.extend(info_dict.get('_old_archive_ids', [])) + return any(id_ in self.archive for id_ in vid_ids) def record_download_archive(self, info_dict): fn = self.params.get('download_archive') -- cgit v1.2.3