aboutsummaryrefslogtreecommitdiff
path: root/yt_dlp/options.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2021-07-19 23:26:22 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2021-07-19 23:47:45 +0530
commit5520aa2dc9119a091b96944d373e33251a3b9ba7 (patch)
treeafbeb04fc58311903d037856372a93990e87f8b7 /yt_dlp/options.py
parent8d9b9022435abcc24790b5dcce8d323b167d7954 (diff)
Add option `--exec-before-download`
Closes #530
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 64bc380e1..2a42712b6 100644
--- a/yt_dlp/options.py
+++ b/yt_dlp/options.py
@@ -1266,6 +1266,10 @@ def parseOpts(overrideArguments=None):
'An additional field "filepath" that contains the final path of the downloaded file is also available. '
'If no fields are passed, "%(filepath)s" is appended to the end of the command'))
postproc.add_option(
+ '--exec-before-download',
+ metavar='CMD', dest='exec_before_dl_cmd',
+ help='Execute a command before the actual download. The syntax is the same as --exec')
+ postproc.add_option(
'--convert-subs', '--convert-sub', '--convert-subtitles',
metavar='FORMAT', dest='convertsubtitles', default=None,
help=(