]> git.mxchange.org Git - fba.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Wed, 11 Oct 2023 11:42:32 +0000 (13:42 +0200)
committerRoland Häder <roland@mxchange.org>
Wed, 11 Oct 2023 11:42:32 +0000 (13:42 +0200)
- also need to skip empty strings

fba/http/federation.py

index 46c1da60d70966f45592c250fe21026e0c883d6c..d3c6daa2140106f60898a0555d930a6d7a1183f6 100644 (file)
@@ -310,7 +310,7 @@ def fetch_generator_from_path(domain: str, path: str = "/") -> str:
             if software is not None and software != "":
                 logger.debug("domain='%s' has application-name='%s' - Setting detection_mode=app_name ...", domain, software)
                 instances.set_detection_mode(domain, "APP_NAME")
-        elif isinstance(site_name, bs4.element.Tag) and isinstance(site_name.get("content"), str):
+        elif isinstance(site_name, bs4.element.Tag) and isinstance(site_name.get("content"), str) and site_name.get("content") != "":
             logger.debug("Found property=og:site_name, domain='%s'", domain)
             software = tidyup.domain(site_name.get("content"))