From 7282df9c0852471946cad1aed92ccbd45c679a38 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Tue, 26 Sep 2023 14:10:07 +0200 Subject: [PATCH] UI + Fetching - Improving helper message when filter contains only an image (adding link to more help) --- changedetectionio/templates/watch-overview.html | 3 +++ changedetectionio/update_worker.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/changedetectionio/templates/watch-overview.html b/changedetectionio/templates/watch-overview.html index 968bfc80..687012c7 100644 --- a/changedetectionio/templates/watch-overview.html +++ b/changedetectionio/templates/watch-overview.html @@ -119,6 +119,9 @@ Try adding external proxies/locations {% endif %} + {% if 'empty result or contain only an image' in watch.last_error %} + more help here. + {% endif %} {% endif %} {% if watch.last_notification_error is defined and watch.last_notification_error != False %} diff --git a/changedetectionio/update_worker.py b/changedetectionio/update_worker.py index de0a669d..1cfc0a84 100644 --- a/changedetectionio/update_worker.py +++ b/changedetectionio/update_worker.py @@ -257,7 +257,7 @@ class update_worker(threading.Thread): has_img = html_tools.include_filters(include_filters='img', html_content=e.html_content) if has_img: - extra_help = ", it's possible that the filters you have give an empty result or contain only an image more help here." + extra_help = ", it's possible that the filters you have give an empty result or contain only an image." else: extra_help = ", it's possible that the filters were found, but contained no usable text."