diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-07-13 15:03:05 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-08-02 01:08:16 +0530 |
commit | 1e8fe57e5cd0f33f940df87430d75e1230ec5b7a (patch) | |
tree | 206adcafb63733921d295d5b3eadf78e8f7b064d /yt_dlp/YoutubeDL.py | |
parent | f14a2d838240e9e75fe52d4e381156064e90674c (diff) | |
download | hypervideo-pre-1e8fe57e5cd0f33f940df87430d75e1230ec5b7a.tar.lz hypervideo-pre-1e8fe57e5cd0f33f940df87430d75e1230ec5b7a.tar.xz hypervideo-pre-1e8fe57e5cd0f33f940df87430d75e1230ec5b7a.zip |
[extractor] Support multiple archive ids for one video (#4307)
Closes #4352
Diffstat (limited to 'yt_dlp/YoutubeDL.py')
-rw-r--r-- | yt_dlp/YoutubeDL.py | 8 |
1 files changed, 3 insertions, 5 deletions
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') |