mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-08-04 11:12:39 +00:00
[extractor] Import _ALL_CLASSES
lazily
This significantly speeds up `import yt_dlp` in the absence of `lazy_extractors`
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user