diff --git a/archivebox/config/common.py b/archivebox/config/common.py index 0a29bbc6..31e8abf5 100644 --- a/archivebox/config/common.py +++ b/archivebox/config/common.py @@ -283,10 +283,6 @@ class ArchivingConfig(BaseConfigSet): default="", description="Comma-separated plugin selection for this run. Empty means use enabled plugin defaults.", ) - ENABLED_PLUGINS: str = Field( - default="", - description="Comma-separated plugin selection override used by the UI and API.", - ) ONLY_NEW: bool = Field(default=True) diff --git a/archivebox/hooks.py b/archivebox/hooks.py index 81dfe266..0e9a4fbf 100644 --- a/archivebox/hooks.py +++ b/archivebox/hooks.py @@ -681,10 +681,10 @@ def get_enabled_plugins(config: ConfigLookup | None = None, **config_kwargs: Any return [str(plugin).strip() for plugin in value if str(plugin).strip()] return [str(value).strip()] if str(value).strip() else [] - # Support explicit ENABLED_PLUGINS override - enabled_plugins = config.get("ENABLED_PLUGINS") - if enabled_plugins: - return normalize_enabled_plugins(enabled_plugins) + # Support explicit PLUGINS override + plugins_override = config.get("PLUGINS") + if plugins_override: + return normalize_enabled_plugins(plugins_override) # Filter all plugins by enabled status all_plugins = get_plugins() diff --git a/archivebox/templates/core/add.html b/archivebox/templates/core/add.html index 31cc6d74..806e0aa7 100644 --- a/archivebox/templates/core/add.html +++ b/archivebox/templates/core/add.html @@ -304,7 +304,7 @@
{{ form.config.errors }}
{% endif %}
- Override any config option for this crawl (e.g., TIMEOUT, USER_AGENT, CHROME_BINARY, etc.). URL_ALLOWLIST, URL_DENYLIST, and ENABLED_PLUGINS are updated automatically from the fields above. + Override any config option for this crawl (e.g., TIMEOUT, USER_AGENT, CHROME_BINARY, etc.). URL_ALLOWLIST, URL_DENYLIST, and PLUGINS are updated automatically from the fields above.
@@ -477,7 +477,7 @@ .map(cb => cb.value) .filter(Boolean) .sort((left, right) => left.localeCompare(right)); - setConfigRow('ENABLED_PLUGINS', selectedPlugins.join(',')); + setConfigRow('PLUGINS', selectedPlugins.join(',')); } function replaceConfigRows(config) {