aboutsummaryrefslogtreecommitdiff
path: root/yt_dlp/options.py
diff options
context:
space:
mode:
authorImran Hussain <ih@imranh.co.uk>2024-10-20 18:10:26 +0100
committerGitHub <noreply@github.com>2024-10-20 17:10:26 +0000
commit0f593dca9fa995d88eb763170a932da61c8f24dc (patch)
tree601f201d5981bb0b12b6a01e782be97849cc177e /yt_dlp/options.py
parent8de431ec97a4b62b73df8f686b6e21e462775336 (diff)
Add option `--plugin-dirs` (#11277)
Closes #3260 Authored by: imranh2, coletdjnz Co-authored-by: coletdjnz <coletdjnz@protonmail.com>
Diffstat (limited to 'yt_dlp/options.py')
-rw-r--r--yt_dlp/options.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/yt_dlp/options.py b/yt_dlp/options.py
index 9980b7fc3..c3a647da7 100644
--- a/yt_dlp/options.py
+++ b/yt_dlp/options.py
@@ -409,6 +409,14 @@ def create_parser():
'Location of the main configuration file; either the path to the config or its containing directory '
'("-" for stdin). Can be used multiple times and inside other configuration files'))
general.add_option(
+ '--plugin-dirs',
+ dest='plugin_dirs', metavar='PATH', action='append',
+ help=(
+ 'Path to an additional directory to search for plugins. '
+ 'This option can be used multiple times to add multiple directories. '
+ 'Note that this currently only works for extractor plugins; '
+ 'postprocessor plugins can only be loaded from the default plugin directories'))
+ general.add_option(
'--flat-playlist',
action='store_const', dest='extract_flat', const='in_playlist', default=False,
help='Do not extract the videos of a playlist, only list them')