mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-03-09 12:50:23 -05:00
Update yt_dlp/plugins.py
Co-authored-by: pukkandan <pukkandan.ytdlp@gmail.com>
This commit is contained in:
parent
a290aa0107
commit
b738e60002
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue