Skip to content

A feature-rich command-line audio/video downloader

Add option `--no-break-on-existing` (#9610)

bashonly16be11772915
diff --git a/README.md b/README.md
index 014bf262ea..d4dd2c7be5 100644
--- a/README.md
+++ b/README.md
@@ -481,6 +481,9 @@ If you fork the project on GitHub, you can run your fork's [build workflow](.git
--max-downloads NUMBER Abort after downloading NUMBER files
--break-on-existing Stop the download process when encountering
a file that is in the archive
+ --no-break-on-existing Do not stop the download process when
+ encountering a file that is in the archive
+ (default)
--break-per-input Alters --max-downloads, --break-on-existing,
--break-match-filter, and autonumber to
reset per input URL
diff --git a/yt_dlp/options.py b/yt_dlp/options.py
index dac56dc1f0..43d71ef070 100644
--- a/yt_dlp/options.py
+++ b/yt_dlp/options.py
@@ -691,6 +691,10 @@ def create_parser():
'--break-on-existing',
action='store_true', dest='break_on_existing', default=False,
help='Stop the download process when encountering a file that is in the archive')
+ selection.add_option(
+ '--no-break-on-existing',
+ action='store_false', dest='break_on_existing',
+ help='Do not stop the download process when encountering a file that is in the archive (default)')
selection.add_option(
'--break-on-reject',
action='store_true', dest='break_on_reject', default=False,