diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-07-19 23:26:22 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-07-19 23:47:45 +0530 |
commit | 5520aa2dc9119a091b96944d373e33251a3b9ba7 (patch) | |
tree | afbeb04fc58311903d037856372a93990e87f8b7 /yt_dlp/options.py | |
parent | 8d9b9022435abcc24790b5dcce8d323b167d7954 (diff) |
Add option `--exec-before-download`
Closes #530
Diffstat (limited to 'yt_dlp/options.py')
-rw-r--r-- | yt_dlp/options.py | 4 |
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=( |