From f770fa37657cd9d897598f282e5df02d529da578 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Wed, 8 Oct 2025 23:00:40 +0200 Subject: [PATCH] WIP --- changedetectionio/processors/magic.py | 31 ++++++++++--------- .../processors/text_json_diff/processor.py | 5 ++- 2 files changed, 20 insertions(+), 16 deletions(-) diff --git a/changedetectionio/processors/magic.py b/changedetectionio/processors/magic.py index e3ce066d1..8c2f919a7 100644 --- a/changedetectionio/processors/magic.py +++ b/changedetectionio/processors/magic.py @@ -87,21 +87,8 @@ class guess_stream_type(): # Check for HTML patterns first - if found, override magic's text/plain has_html_patterns = any(p in test_content_normalized for p in HTML_PATTERNS) - if has_html_patterns or content_header == 'text/html': - self.is_html = True - # If magic says text/plain and we found no HTML patterns, trust it - elif magic_result == 'text/plain': - self.is_plaintext = True - logger.debug(f"Trusting magic's text/plain result (no HTML patterns detected)") - elif '