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,8 +3042,10 @@ def get_requested_items(self):
if not entry: if not entry:
continue continue
try: try:
# TODO: Add auto-generated fields # The item may have just been added to archive. Don't break due to it
self.ydl._match_entry(entry, incomplete=True, silent=True) 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): except (ExistingVideoReached, RejectedVideoReached):
return return