diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-09-30 02:23:33 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-09-30 03:32:46 +0530 |
commit | 3ae5e7977439193519c0ea62eba3aa3111c5571b (patch) | |
tree | b0ddc209e5baec86908fec6d6bddcbc6e385a062 /yt_dlp/utils.py | |
parent | 8e3fd7e034cdd54972d13394821cd9e55e1c3735 (diff) | |
download | hypervideo-pre-3ae5e7977439193519c0ea62eba3aa3111c5571b.tar.lz hypervideo-pre-3ae5e7977439193519c0ea62eba3aa3111c5571b.tar.xz hypervideo-pre-3ae5e7977439193519c0ea62eba3aa3111c5571b.zip |
[postprocessor] Add plugin support
Adds option `--use-postprocessor` to enable them
Diffstat (limited to 'yt_dlp/utils.py')
-rw-r--r-- | yt_dlp/utils.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/yt_dlp/utils.py b/yt_dlp/utils.py index 4aa36a116..1bc0ac767 100644 --- a/yt_dlp/utils.py +++ b/yt_dlp/utils.py @@ -6278,7 +6278,7 @@ def get_executable_path(): def load_plugins(name, suffix, namespace): plugin_info = [None] - classes = [] + classes = {} try: plugin_info = imp.find_module( name, [os.path.join(get_executable_path(), 'ytdlp_plugins')]) @@ -6289,8 +6289,7 @@ def load_plugins(name, suffix, namespace): if not name.endswith(suffix): continue klass = getattr(plugins, name) - classes.append(klass) - namespace[name] = klass + classes[name] = namespace[name] = klass except ImportError: pass finally: |