aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/options.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2021-11-29 02:41:55 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2021-11-29 22:52:01 +0530
commitb222c27145a456eef4ed82a8dbbf92cb96fa8041 (patch)
treeaf4d70c9e733859d67ccd3cb4ad2a4892d76ac3d /yt_dlp/options.py
parent5e5be0c0b2060a238fa4d6ebf0f62d4004208e7b (diff)
downloadhypervideo-pre-b222c27145a456eef4ed82a8dbbf92cb96fa8041.tar.lz
hypervideo-pre-b222c27145a456eef4ed82a8dbbf92cb96fa8041.tar.xz
hypervideo-pre-b222c27145a456eef4ed82a8dbbf92cb96fa8041.zip
Option `--break-per-input` to apply --break-on... to each input URL
Diffstat (limited to 'yt_dlp/options.py')
-rw-r--r--yt_dlp/options.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/yt_dlp/options.py b/yt_dlp/options.py
index 0843d5ff7..4c1920404 100644
--- a/yt_dlp/options.py
+++ b/yt_dlp/options.py
@@ -450,6 +450,14 @@ def parseOpts(overrideArguments=None):
action='store_true', dest='break_on_reject', default=False,
help='Stop the download process when encountering a file that has been filtered out')
selection.add_option(
+ '--break-per-input',
+ action='store_true', dest='break_per_url', default=False,
+ help='Make --break-on-existing and --break-on-reject act only on the current input URL')
+ selection.add_option(
+ '--no-break-per-input',
+ action='store_false', dest='break_per_url',
+ help='--break-on-existing and --break-on-reject terminates the entire download queue')
+ selection.add_option(
'--skip-playlist-after-errors', metavar='N',
dest='skip_playlist_after_errors', default=None, type=int,
help='Number of allowed failures until the rest of the playlist is skipped')