aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpukkandan <pukkandan@gmail.com>2021-01-28 11:22:13 +0530
committerpukkandan <pukkandan@gmail.com>2021-01-28 11:25:42 +0530
commit0748b3317bb0d6db492fe5effaa2d43c7dddd582 (patch)
tree2353c21921889162c3c64790f40df44f034be2eb
parent6b591b29254db07d63f4aecc7260299331efa003 (diff)
downloadhypervideo-pre-0748b3317bb0d6db492fe5effaa2d43c7dddd582.tar.lz
hypervideo-pre-0748b3317bb0d6db492fe5effaa2d43c7dddd582.tar.xz
hypervideo-pre-0748b3317bb0d6db492fe5effaa2d43c7dddd582.zip
Seperate import of lazy_extractors from that of normal extractors
This prevents "ModuleNotFoundError: No module named 'youtube_dl.extractor.lazy_extractors'" from appearing in the traceback Related: https://github.com/animelover1984/youtube-dl/issues/17#issuecomment-757945024
-rw-r--r--youtube_dlc/extractor/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dlc/extractor/__init__.py b/youtube_dlc/extractor/__init__.py
index 56251384d..38f6df181 100644
--- a/youtube_dlc/extractor/__init__.py
+++ b/youtube_dlc/extractor/__init__.py
@@ -7,9 +7,10 @@ try:
from .lazy_extractors import _ALL_CLASSES
_LAZY_LOADER = True
_PLUGIN_CLASSES = []
-
except ImportError:
_LAZY_LOADER = False
+
+if not _LAZY_LOADER:
from .extractors import *
_PLUGIN_CLASSES = load_plugins('extractor', 'IE', globals())