You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
yt-dlp/yt_dlp/_globals.py

26 lines
876 B
Python

2 years ago
from collections import defaultdict
from contextvars import ContextVar
# Internal only - no backwards compatibility guaranteed
2 years ago
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)
2 years ago
# Plugins
plugin_specs = ContextVar('plugin_specs', default={})
# Whether plugins have been loaded once
all_plugins_loaded = ContextVar('all_plugins_loaded', default=False)
2 months ago
plugins_enabled = ContextVar('plugins_enabled', default=True)
plugin_dirs = ContextVar('plugin_dirs', default=('external', ))
2 years ago
plugin_ies = ContextVar('plugin_ies', default={})
plugin_overrides = ContextVar('plugin_overrides', default=defaultdict(list))
plugin_pps = ContextVar('plugin_pps', default={})