aboutsummaryrefslogtreecommitdiff
path: root/youtube_dlc/extractor/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'youtube_dlc/extractor/__init__.py')
-rw-r--r--youtube_dlc/extractor/__init__.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/youtube_dlc/extractor/__init__.py b/youtube_dlc/extractor/__init__.py
index 18d8dbcd6..56251384d 100644
--- a/youtube_dlc/extractor/__init__.py
+++ b/youtube_dlc/extractor/__init__.py
@@ -1,13 +1,19 @@
from __future__ import unicode_literals
+from ..utils import load_plugins
+
try:
from .lazy_extractors import *
from .lazy_extractors import _ALL_CLASSES
_LAZY_LOADER = True
+ _PLUGIN_CLASSES = []
+
except ImportError:
_LAZY_LOADER = False
from .extractors import *
+ _PLUGIN_CLASSES = load_plugins('extractor', 'IE', globals())
+
_ALL_CLASSES = [
klass
for name, klass in globals().items()