|
|
|
@ -38,7 +38,7 @@ from ._globals import (
|
|
|
|
|
LAZY_EXTRACTORS,
|
|
|
|
|
plugin_ies,
|
|
|
|
|
plugin_overrides,
|
|
|
|
|
plugin_pps,
|
|
|
|
|
plugin_pps, ALL_PLUGINS_LOADED,
|
|
|
|
|
)
|
|
|
|
|
from .minicurses import format_text
|
|
|
|
|
from .networking import HEADRequest, Request, RequestDirector
|
|
|
|
@ -51,7 +51,7 @@ from .networking.exceptions import (
|
|
|
|
|
network_exceptions,
|
|
|
|
|
)
|
|
|
|
|
from .networking.impersonate import ImpersonateRequestHandler
|
|
|
|
|
from .plugins import directories as plugin_directories
|
|
|
|
|
from .plugins import directories as plugin_directories, load_all_plugin_types
|
|
|
|
|
from .postprocessor import (
|
|
|
|
|
EmbedThumbnailPP,
|
|
|
|
|
FFmpegFixupDuplicateMoovPP,
|
|
|
|
@ -645,6 +645,10 @@ class YoutubeDL:
|
|
|
|
|
self.cache = Cache(self)
|
|
|
|
|
self.__header_cookies = []
|
|
|
|
|
|
|
|
|
|
# compat for API: load plugins if they have not already
|
|
|
|
|
if not ALL_PLUGINS_LOADED.get():
|
|
|
|
|
load_all_plugin_types()
|
|
|
|
|
|
|
|
|
|
stdout = sys.stderr if self.params.get('logtostderr') else sys.stdout
|
|
|
|
|
self._out_files = Namespace(
|
|
|
|
|
out=stdout,
|
|
|
|
|