aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbashonly <88596187+bashonly@users.noreply.github.com>2024-04-03 17:51:41 -0500
committerGitHub <noreply@github.com>2024-04-03 22:51:41 +0000
commit16be117729150b2784f3b17755c886cb0cf73374 (patch)
treed82db84a19933c960094cb592299ae032bc726de
parentb49d5ffc53a72d8245ba319ff07bdc5b8c6a4f0c (diff)
Add option `--no-break-on-existing` (#9610)
Authored by: bashonly
-rw-r--r--README.md3
-rw-r--r--yt_dlp/options.py4
2 files changed, 7 insertions, 0 deletions
diff --git a/README.md b/README.md
index 014bf262e..d4dd2c7be 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 dac56dc1f..43d71ef07 100644
--- a/yt_dlp/options.py
+++ b/yt_dlp/options.py
@@ -692,6 +692,10 @@ def create_parser():
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,
help=optparse.SUPPRESS_HELP)