diff options
author | Simon Sawicki <contact@grub4k.xyz> | 2024-10-13 03:50:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-13 03:50:31 +0200 |
commit | 1a830394a21a81a3e9918f9e175abc9fbb21f089 (patch) | |
tree | f8e9b7d288443923e56922947bcf1148043d98af /yt_dlp/plugins.py | |
parent | edfd095b1917701c5046bd51f9542897c17d41a7 (diff) |
[build] `make_lazy_extractors`: Force running without plugins (#11205)
Authored by: Grub4K
Diffstat (limited to 'yt_dlp/plugins.py')
-rw-r--r-- | yt_dlp/plugins.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/yt_dlp/plugins.py b/yt_dlp/plugins.py index 3cc879fd7..d777d14e7 100644 --- a/yt_dlp/plugins.py +++ b/yt_dlp/plugins.py @@ -5,6 +5,7 @@ import importlib.machinery import importlib.util import inspect import itertools +import os import pkgutil import sys import traceback @@ -137,6 +138,8 @@ def load_module(module, module_name, suffix): def load_plugins(name, suffix): classes = {} + if os.environ.get('YTDLP_NO_PLUGINS'): + return classes for finder, module_name, _ in iter_modules(name): if any(x.startswith('_') for x in module_name.split('.')): |