]> jfr.im git - yt-dlp.git/commitdiff
[lazy_extractor] Do not load plugins
authorpukkandan <redacted>
Thu, 22 Apr 2021 11:02:06 +0000 (16:32 +0530)
committerpukkandan <redacted>
Thu, 22 Apr 2021 11:24:08 +0000 (16:54 +0530)
devscripts/make_lazy_extractors.py

index 0ddaa3f8304212e742237bc9d35ac7bf08866b13..cc1cf0bd4a5bc215006ca14e3ebf383d2711d3ea 100644 (file)
 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()