aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/options.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2021-09-24 05:51:54 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2021-09-24 06:05:35 +0530
commitb19404591a8ad4d0c7e962931ea809221e3f0b8e (patch)
tree56fb96572fb415d6d1858e7bbb6feea2ce088125 /yt_dlp/options.py
parent1f8471e22cdb5181aa19b0c63523ad96891ea2dd (diff)
downloadhypervideo-pre-b19404591a8ad4d0c7e962931ea809221e3f0b8e.tar.lz
hypervideo-pre-b19404591a8ad4d0c7e962931ea809221e3f0b8e.tar.xz
hypervideo-pre-b19404591a8ad4d0c7e962931ea809221e3f0b8e.zip
Separate the options `--ignore-errors` and `--no-abort-on-error`
In youtube-dl, `-i` ignores both download and post-processing error, and treats the download as successful even if the post-processor fails. yt-dlp used to skip the entire video on either error and there was no option to ignore the post-processing errors like youtube-dl does. By splitting the option into two, now either just the download errors (--no-abort-on-error, default on CLI) or all errors (--ignore-errors) can be ignored as per the users' needs Closes #893
Diffstat (limited to 'yt_dlp/options.py')
-rw-r--r--yt_dlp/options.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/yt_dlp/options.py b/yt_dlp/options.py
index 80b3df74f..57e25a518 100644
--- a/yt_dlp/options.py
+++ b/yt_dlp/options.py
@@ -206,9 +206,13 @@ def parseOpts(overrideArguments=None):
action='store_true', dest='update_self',
help='Update this program to latest version. Make sure that you have sufficient permissions (run with sudo if needed)')
general.add_option(
- '-i', '--ignore-errors', '--no-abort-on-error',
- action='store_true', dest='ignoreerrors', default=None,
- help='Continue on download errors, for example to skip unavailable videos in a playlist (default) (Alias: --no-abort-on-error)')
+ '-i', '--ignore-errors',
+ action='store_true', dest='ignoreerrors',
+ help='Ignore download and postprocessing errors. The download will be considered successfull even if the postprocessing fails')
+ general.add_option(
+ '--no-abort-on-error',
+ action='store_const', dest='ignoreerrors', const='only_download',
+ help='Continue with next video on download errors; e.g. to skip unavailable videos in a playlist (default)')
general.add_option(
'--abort-on-error', '--no-ignore-errors',
action='store_false', dest='ignoreerrors',