mirror of
https://github.com/yt-dlp/yt-dlp
synced 2025-02-07 08:46:30 +01:00
24 lines
841 B
Python
24 lines
841 B
Python
from collections import defaultdict
|
|
from contextvars import ContextVar
|
|
|
|
# Internal only - no backwards compatibility guaranteed
|
|
|
|
postprocessors = ContextVar('postprocessors', default={})
|
|
extractors = ContextVar('extractors', default={})
|
|
IN_CLI = ContextVar('IN_CLI', default=False)
|
|
# `False`=force, `None`=disabled, `True`=enabled
|
|
LAZY_EXTRACTORS = ContextVar('LAZY_EXTRACTORS', default=False)
|
|
|
|
|
|
# Plugins
|
|
|
|
plugin_specs = ContextVar('plugin_specs', default={})
|
|
|
|
# Whether plugins have been loaded once
|
|
all_plugins_loaded = ContextVar('all_plugins_loaded', default=False)
|
|
|
|
# `...`=search default plugin dirs
|
|
plugin_dirs = ContextVar('plugin_dirs', default=(..., ))
|
|
plugin_ies = ContextVar('plugin_ies', default={})
|
|
plugin_overrides = ContextVar('plugin_overrides', default=defaultdict(list))
|
|
plugin_pps = ContextVar('plugin_pps', default={})
|