diff --git a/changedetectionio/blueprint/ui/edit.py b/changedetectionio/blueprint/ui/edit.py index f97aae02f..b77f97c85 100644 --- a/changedetectionio/blueprint/ui/edit.py +++ b/changedetectionio/blueprint/ui/edit.py @@ -271,6 +271,7 @@ def construct_blueprint(datastore: ChangeDetectionStore, update_q, queuedWatchMe # Add processor capabilities from module capabilities['supports_visual_selector'] = getattr(parent_module, 'supports_visual_selector', False) capabilities['supports_text_filters_and_triggers'] = getattr(parent_module, 'supports_text_filters_and_triggers', False) + capabilities['supports_text_filters_and_triggers_elements'] = getattr(parent_module, 'supports_text_filters_and_triggers_elements', False) capabilities['supports_request_type'] = getattr(parent_module, 'supports_request_type', False) app_rss_token = datastore.data['settings']['application'].get('rss_access_token'), diff --git a/changedetectionio/blueprint/ui/templates/edit.html b/changedetectionio/blueprint/ui/templates/edit.html index e76bea229..b0c6d7e4a 100644 --- a/changedetectionio/blueprint/ui/templates/edit.html +++ b/changedetectionio/blueprint/ui/templates/edit.html @@ -309,7 +309,9 @@ Math: {{ 1 + 1 }}") }} {{ _('Activate preview') }}
-
+ +{% if capabilities.supports_text_filters_and_triggers_elements %} +
{{ _('Pro-tips:') }}
  • @@ -320,8 +322,8 @@ Math: {{ 1 + 1 }}") }}
- {% include "edit/include_subtract.html" %} +{% endif %}

{{ _('Text filtering') }}

diff --git a/changedetectionio/processors/image_ssim_diff/__init__.py b/changedetectionio/processors/image_ssim_diff/__init__.py index 461b8d9a0..15072e00a 100644 --- a/changedetectionio/processors/image_ssim_diff/__init__.py +++ b/changedetectionio/processors/image_ssim_diff/__init__.py @@ -15,7 +15,8 @@ processor_weight = 2 # Lower weight = appears at top, heavier weight = appears # Processor capabilities supports_visual_selector = True supports_browser_steps = True -supports_text_filters_and_triggers = True +supports_text_filters_and_triggers = False +supports_text_filters_and_triggers_elements = False supports_request_type = True PROCESSOR_CONFIG_NAME = f"{Path(__file__).parent.name}.json" diff --git a/changedetectionio/processors/restock_diff/__init__.py b/changedetectionio/processors/restock_diff/__init__.py index 3d472beec..28ecd62d7 100644 --- a/changedetectionio/processors/restock_diff/__init__.py +++ b/changedetectionio/processors/restock_diff/__init__.py @@ -4,6 +4,13 @@ from changedetectionio.model.Watch import model as BaseWatch from typing import Union import re +# Processor capabilities +supports_visual_selector = True +supports_browser_steps = True +supports_text_filters_and_triggers = True +supports_text_filters_and_triggers_elements = True +supports_request_type = True + class Restock(dict): def parse_currency(self, raw_value: str) -> Union[float, None]: diff --git a/changedetectionio/processors/text_json_diff/__init__.py b/changedetectionio/processors/text_json_diff/__init__.py index 49b077dba..db8cca313 100644 --- a/changedetectionio/processors/text_json_diff/__init__.py +++ b/changedetectionio/processors/text_json_diff/__init__.py @@ -4,6 +4,7 @@ from loguru import logger supports_visual_selector = True supports_browser_steps = True supports_text_filters_and_triggers = True +supports_text_filters_and_triggers_elements = True supports_request_type = True