summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorPhilipp Hagemeister <[email protected]>2013-10-18 23:09:32 +0200
committerPhilipp Hagemeister <[email protected]>2013-10-18 23:09:32 +0200
commit41fd7c7e608ad656251ffdf55abc4c715a6efe12 (patch)
treeec2c00e737a769b113c2825f1df33aeecec3412c
parentfdefe96bf2bf93c7df590a145b4d7572eb1b1723 (diff)
downloadyoutube-dl-41fd7c7e608ad656251ffdf55abc4c715a6efe12.tar.gz
youtube-dl-41fd7c7e608ad656251ffdf55abc4c715a6efe12.zip
Add new option --abort-on-error
-rw-r--r--youtube_dl/__init__.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/youtube_dl/__init__.py b/youtube_dl/__init__.py
index bb59f257b..fce1adf0c 100644
--- a/youtube_dl/__init__.py
+++ b/youtube_dl/__init__.py
@@ -179,6 +179,9 @@ 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',
action='store_true', dest='ignoreerrors', help='continue on download errors, for example to to skip unavailable videos in a playlist', default=False)
+ general.add_option('--abort-on-error',
+ action='store_false', dest='ignoreerrors',
+ help='Abort downloading of further videos (in the playlist or the command line) if an error occurs')
general.add_option('--dump-user-agent',
action='store_true', dest='dump_user_agent',
help='display the current browser identification', default=False)