From 560738f34de4df6eaf82290fd503def3f366f878 Mon Sep 17 00:00:00 2001 From: pukkandan Date: Wed, 15 Jun 2022 18:00:34 +0530 Subject: [extractor] Import `_ALL_CLASSES` lazily This significantly speeds up `import yt_dlp` in the absence of `lazy_extractors` --- devscripts/make_lazy_extractors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'devscripts/make_lazy_extractors.py') diff --git a/devscripts/make_lazy_extractors.py b/devscripts/make_lazy_extractors.py index cd1985c8e..39d4646d0 100644 --- a/devscripts/make_lazy_extractors.py +++ b/devscripts/make_lazy_extractors.py @@ -53,7 +53,7 @@ def get_all_ies(): if os.path.exists(PLUGINS_DIRNAME): os.rename(PLUGINS_DIRNAME, BLOCKED_DIRNAME) try: - from yt_dlp.extractor import _ALL_CLASSES + from yt_dlp.extractor.extractors import _ALL_CLASSES finally: if os.path.exists(BLOCKED_DIRNAME): os.rename(BLOCKED_DIRNAME, PLUGINS_DIRNAME) -- cgit v1.2.3