diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-06-15 18:00:34 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-06-16 06:23:50 +0530 |
commit | 560738f34de4df6eaf82290fd503def3f366f878 (patch) | |
tree | abaf12930736e70b39a3a1b45500408ca020cf2c /devscripts/make_lazy_extractors.py | |
parent | 99d10bf60796a90d2ca421ec63f1208b15ae5f48 (diff) | |
download | hypervideo-pre-560738f34de4df6eaf82290fd503def3f366f878.tar.lz hypervideo-pre-560738f34de4df6eaf82290fd503def3f366f878.tar.xz hypervideo-pre-560738f34de4df6eaf82290fd503def3f366f878.zip |
[extractor] Import `_ALL_CLASSES` lazily
This significantly speeds up `import yt_dlp` in the absence of `lazy_extractors`
Diffstat (limited to 'devscripts/make_lazy_extractors.py')
-rw-r--r-- | devscripts/make_lazy_extractors.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |