aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/options.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2021-04-21 11:30:43 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2021-04-22 02:16:31 +0530
commit26e2805c3f11066c79ed29cf78511eae7fdc7a7b (patch)
tree58752fa69d000049c0286b98c72b6600fadefdd4 /yt_dlp/options.py
parent3b4775e021ebe4c5da43b48bc6484a829f0bb9e2 (diff)
downloadhypervideo-pre-26e2805c3f11066c79ed29cf78511eae7fdc7a7b.tar.lz
hypervideo-pre-26e2805c3f11066c79ed29cf78511eae7fdc7a7b.tar.xz
hypervideo-pre-26e2805c3f11066c79ed29cf78511eae7fdc7a7b.zip
Add option `--skip-playlist-after-errors`
Allows to skip the rest of a playlist after a given number of errors are encountered
Diffstat (limited to 'yt_dlp/options.py')
-rw-r--r--yt_dlp/options.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/yt_dlp/options.py b/yt_dlp/options.py
index a16604b73..c21c453ed 100644
--- a/yt_dlp/options.py
+++ b/yt_dlp/options.py
@@ -396,6 +396,10 @@ 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(
+ '--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')
+ selection.add_option(
'--no-download-archive',
dest='download_archive', action="store_const", const=None,
help='Do not use archive file (default)')