From 16be117729150b2784f3b17755c886cb0cf73374 Mon Sep 17 00:00:00 2001 From: bashonly <88596187+bashonly@users.noreply.github.com> Date: Wed, 3 Apr 2024 17:51:41 -0500 Subject: [PATCH] Add option `--no-break-on-existing` (#9610) Authored by: bashonly --- README.md | 3 +++ yt_dlp/options.py | 4 ++++ 2 files changed, 7 insertions(+) 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 @@ -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,