1
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-03-09 12:50:23 -05:00
yt-dlp/yt_dlp/_globals.py

29 lines
672 B
Python
Raw Normal View History

2023-01-07 01:19:13 -06:00
from collections import defaultdict
2024-12-07 18:45:21 -06:00
# Internal only - no backwards compatibility guaranteed
2023-01-07 01:19:13 -06:00
2024-11-29 17:57:30 -06:00
class Indirect:
def __init__(self, initial, /):
self.value = initial
def __repr__(self, /):
return f'{type(self).__name__}({self.value!r})'
postprocessors = Indirect({})
extractors = Indirect({})
2024-12-07 18:45:21 -06:00
2024-11-29 17:57:30 -06:00
IN_CLI = Indirect(False)
2023-01-07 01:19:13 -06:00
# `False`=force, `None`=disabled, `True`=enabled
2024-11-29 17:57:30 -06:00
LAZY_EXTRACTORS = Indirect(False)
2023-01-07 01:19:13 -06:00
2024-10-19 17:59:29 -05:00
# Plugins
2024-11-29 17:57:30 -06:00
plugin_specs = Indirect({})
all_plugins_loaded = Indirect(False)
plugins_enabled = Indirect(True)
plugin_dirs = Indirect(['external'])
plugin_ies = Indirect({})
plugin_overrides = Indirect(defaultdict(list))
plugin_pps = Indirect({})