mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-05 08:40:04 +01:00
Fix --break-on-archive when pre-checking
This commit is contained in:
parent
7578d77d8c
commit
5e5be0c0b2
@ -1304,8 +1304,9 @@ def extract_info(self, url, download=True, ie_key=None, extra_info=None,
|
|||||||
|
|
||||||
temp_id = ie.get_temp_id(url)
|
temp_id = ie.get_temp_id(url)
|
||||||
if temp_id is not None and self.in_download_archive({'id': temp_id, 'ie_key': ie_key}):
|
if temp_id is not None and self.in_download_archive({'id': temp_id, 'ie_key': ie_key}):
|
||||||
self.to_screen("[%s] %s: has already been recorded in archive" % (
|
self.to_screen(f'[{ie_key}] {temp_id}: has already been recorded in the archive')
|
||||||
ie_key, temp_id))
|
if self.params.get('break_on_existing', False):
|
||||||
|
raise ExistingVideoReached()
|
||||||
break
|
break
|
||||||
return self.__extract_info(url, self.get_info_extractor(ie_key), download, extra_info, process)
|
return self.__extract_info(url, self.get_info_extractor(ie_key), download, extra_info, process)
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user