diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2023-03-03 23:59:00 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2023-03-03 23:59:00 +0530 |
commit | d21056f4cf0a1623daa107f9181074f5725ac436 (patch) | |
tree | 166c5085c380bafa867414d4cea870a72b1b3851 /yt_dlp/utils.py | |
parent | b2e0343ba0fc5d8702e90f6ba2b71358e2677e0b (diff) |
Fix `--break-on-existing` with `--lazy-playlist`
Closes #6399
Diffstat (limited to 'yt_dlp/utils.py')
-rw-r--r-- | yt_dlp/utils.py | 6 |
1 files 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 @@ class PlaylistEntries: 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 |