[lazy_extractor] Do not load plugins

This commit is contained in:
pukkandan 2021-04-22 16:32:06 +05:30
parent 1bdae7d312
commit 0b2e9d2c30
No known key found for this signature in database
GPG Key ID: 0F00D95A001F4698

View File

@ -14,9 +14,14 @@ lazy_extractors_filename = sys.argv[1]
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()