mirror of
https://github.com/yt-dlp/yt-dlp
synced 2025-02-15 20:48:32 +01:00
Fix reloading
This commit is contained in:
parent
413ae7693b
commit
cb9e38a797
2 changed files with 2 additions and 1 deletions
|
@ -9,6 +9,7 @@ IN_CLI = ContextVar('IN_CLI', default=False)
|
||||||
# `False`=force, `None`=disabled, `True`=enabled
|
# `False`=force, `None`=disabled, `True`=enabled
|
||||||
LAZY_EXTRACTORS = ContextVar('LAZY_EXTRACTORS', default=False)
|
LAZY_EXTRACTORS = ContextVar('LAZY_EXTRACTORS', default=False)
|
||||||
|
|
||||||
|
# `...`=search default plugin dirs
|
||||||
plugin_dirs = ContextVar('plugin_dirs', default=(..., ))
|
plugin_dirs = ContextVar('plugin_dirs', default=(..., ))
|
||||||
plugin_ies = ContextVar('plugin_ies', default={})
|
plugin_ies = ContextVar('plugin_ies', default={})
|
||||||
plugin_overrides = ContextVar('plugin_overrides', default=defaultdict(list))
|
plugin_overrides = ContextVar('plugin_overrides', default=defaultdict(list))
|
||||||
|
|
|
@ -289,7 +289,7 @@ def load_plugins(plugin_type: PluginType):
|
||||||
# Add the classes into the global plugin lookup for that type
|
# Add the classes into the global plugin lookup for that type
|
||||||
plugin_config.plugin_destination.set(regular_classes)
|
plugin_config.plugin_destination.set(regular_classes)
|
||||||
# We want to prepend to the main lookup for that type
|
# We want to prepend to the main lookup for that type
|
||||||
plugin_config.destination.set(merge_dicts(plugin_config.destination.get(), regular_classes))
|
plugin_config.destination.set(merge_dicts(regular_classes, plugin_config.destination.get()))
|
||||||
|
|
||||||
return regular_classes
|
return regular_classes
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue