From d21056f4cf0a1623daa107f9181074f5725ac436 Mon Sep 17 00:00:00 2001 From: pukkandan Date: Fri, 3 Mar 2023 23:59:00 +0530 Subject: [PATCH] Fix `--break-on-existing` with `--lazy-playlist` Closes #6399 --- yt_dlp/utils.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/yt_dlp/utils.py b/yt_dlp/utils.py index 19c140483..bf2eb6b38 100644 --- a/yt_dlp/utils.py +++ b/yt_dlp/utils.py @@ -3042,8 +3042,10 @@ def get_requested_items(self): if not entry: continue try: - # TODO: Add auto-generated fields - self.ydl._match_entry(entry, incomplete=True, silent=True) + # The item may have just been added to archive. Don't break due to it + if not self.ydl.params.get('lazy_playlist'): + # TODO: Add auto-generated fields + self.ydl._match_entry(entry, incomplete=True, silent=True) except (ExistingVideoReached, RejectedVideoReached): return