From 2c349562220bbc237d30239c14088c6cbc91dafe Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Mon, 12 Jun 2023 16:52:20 +0200 Subject: [PATCH] Continued: - fixed finding "powered by " (start of string) --- fba/federation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fba/federation.py b/fba/federation.py index 7f933b3..045b0d2 100644 --- a/fba/federation.py +++ b/fba/federation.py @@ -361,7 +361,7 @@ def fetch_generator_from_path(domain: str, path: str = "/") -> str: software = version.remove(software) # DEBUG: print(f"DEBUG: software[]='{type(software)}'") - if isinstance(software, str) and " powered by " in software: + if isinstance(software, str) and "powered by " in software: # DEBUG: print(f"DEBUG: software='{software}' has 'powered by' in it") software = version.remove(version.strip_powered_by(software)) elif isinstance(software, str) and " hosted on " in software: -- 2.39.5