Fix --break-on-existing with --lazy-playlist

Closes #6399
This commit is contained in:
pukkandan 2023-03-03 23:59:00 +05:30
parent b2e0343ba0
commit d21056f4cf
No known key found for this signature in database
GPG key ID: 7EEE9E1E817D0A39

View file

@ -3042,6 +3042,8 @@ class PlaylistEntries:
if not entry: if not entry:
continue continue
try: try:
# 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 # TODO: Add auto-generated fields
self.ydl._match_entry(entry, incomplete=True, silent=True) self.ydl._match_entry(entry, incomplete=True, silent=True)
except (ExistingVideoReached, RejectedVideoReached): except (ExistingVideoReached, RejectedVideoReached):