From b738e600023dbebcb6f9d3c7f77ded37db3ced31 Mon Sep 17 00:00:00 2001 From: coletdjnz Date: Sun, 9 Feb 2025 10:16:07 +1300 Subject: [PATCH] Update yt_dlp/plugins.py Co-authored-by: pukkandan --- yt_dlp/plugins.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yt_dlp/plugins.py b/yt_dlp/plugins.py index e9a7d5d80..dbc34f71a 100644 --- a/yt_dlp/plugins.py +++ b/yt_dlp/plugins.py @@ -199,7 +199,7 @@ def get_regular_classes(module, module_name, suffix): def load_plugins(plugin_spec: PluginSpec): name, suffix = plugin_spec.module_name, plugin_spec.suffix regular_classes = {} - if os.environ.get('YTDLP_NO_PLUGINS') or len(plugin_dirs.value) == 0: + if os.environ.get('YTDLP_NO_PLUGINS') or not plugin_dirs.value: return regular_classes for finder, module_name, _ in iter_modules(name):