From: Roland Häder Date: Mon, 12 Jun 2023 14:52:20 +0000 (+0200) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2c349562220bbc237d30239c14088c6cbc91dafe;p=fba.git Continued: - fixed finding "powered by " (start of string) --- 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: