From 0b2e9d2c3051f2e1d79449adde3afbba3b5ec94f Mon Sep 17 00:00:00 2001 From: pukkandan Date: Thu, 22 Apr 2021 16:32:06 +0530 Subject: [PATCH] [lazy_extractor] Do not load plugins --- devscripts/make_lazy_extractors.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/devscripts/make_lazy_extractors.py b/devscripts/make_lazy_extractors.py index 0ddaa3f83..cc1cf0bd4 100644 --- a/devscripts/make_lazy_extractors.py +++ b/devscripts/make_lazy_extractors.py @@ -14,9 +14,14 @@ if os.path.exists(lazy_extractors_filename): os.remove(lazy_extractors_filename) +# Block plugins from loading +os.rename('ytdlp_plugins', 'ytdlp_plugins_blocked') + from yt_dlp.extractor import _ALL_CLASSES from yt_dlp.extractor.common import InfoExtractor, SearchInfoExtractor +os.rename('ytdlp_plugins_blocked', 'ytdlp_plugins') + with open('devscripts/lazy_load_template.py', 'rt') as f: module_template = f.read()