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
1 changed files with 4 additions and 2 deletions

View File

@ -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