A feature-rich command-line audio/video downloader
lazy extractors: Output if it's enabled in the verbose log
Jaime Marquínez Ferrándize0986e31cfd5
diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.pyindex f18a8e8405..a89a71a250 100755--- a/youtube_dl/YoutubeDL.py+++ b/youtube_dl/YoutubeDL.py@@ -82,7 +82,7 @@ from .utils import (YoutubeDLHandler,)from .cache import Cache-from .extractor import get_info_extractor, gen_extractor_classes+from .extractor import get_info_extractor, gen_extractor_classes, _LAZY_LOADERfrom .downloader import get_suitable_downloaderfrom .downloader.rtmp import rtmpdump_versionfrom .postprocessor import (@@ -1959,6 +1959,8 @@ class YoutubeDL(object):write_string(encoding_str, encoding=None)self._write_string('[debug] youtube-dl version ' + __version__ + '\n')+ if _LAZY_LOADER:+ self._write_string('[debug] Lazy loading extractors enabled' + '\n')try:sp = subprocess.Popen(['git', 'rev-parse', '--short', 'HEAD'],diff --git a/youtube_dl/extractor/__init__.py b/youtube_dl/extractor/__init__.pyindex b0d4d156b4..18d8dbcd66 100644--- a/youtube_dl/extractor/__init__.py+++ b/youtube_dl/extractor/__init__.py@@ -3,7 +3,9 @@ from __future__ import unicode_literalstry:from .lazy_extractors import *from .lazy_extractors import _ALL_CLASSES+ _LAZY_LOADER = Trueexcept ImportError:+ _LAZY_LOADER = Falsefrom .extractors import *_ALL_CLASSES = [