aboutsummaryrefslogtreecommitdiffstats
path: root/youtube_dlc/options.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan@users.noreply.github.com>2020-09-21 20:56:18 +0530
committerpukkandan <pukkandan@gmail.com>2020-11-13 14:19:00 +0530
commitea6e0c2b0d3e83f2f8a7766e07a57a2b5495afcc (patch)
tree8bb8b535426bbccf9ae18be7c0a29dc3805a9e88 /youtube_dlc/options.py
parentd052b9a112fb7ae749a829dceba6e3289663a303 (diff)
downloadhypervideo-pre-ea6e0c2b0d3e83f2f8a7766e07a57a2b5495afcc.tar.lz
hypervideo-pre-ea6e0c2b0d3e83f2f8a7766e07a57a2b5495afcc.tar.xz
hypervideo-pre-ea6e0c2b0d3e83f2f8a7766e07a57a2b5495afcc.zip
Add --break-on-existing by @gergesh
Authored-by: Yoav Shai <gergesh@gmail.com>
Diffstat (limited to 'youtube_dlc/options.py')
-rw-r--r--youtube_dlc/options.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/youtube_dlc/options.py b/youtube_dlc/options.py
index 3c8a1305e..9ad8a6ddd 100644
--- a/youtube_dlc/options.py
+++ b/youtube_dlc/options.py
@@ -345,6 +345,10 @@ def parseOpts(overrideArguments=None):
dest='download_archive',
help='Download only videos not listed in the archive file. Record the IDs of all downloaded videos in it.')
selection.add_option(
+ '--break-on-existing',
+ action='store_true', dest='break_on_existing', default=False,
+ help="Stop the download process after attempting to download a file that's in the archive.")
+ selection.add_option(
'--include-ads',
dest='include_ads', action='store_true',
help='Download advertisements as well (experimental)')