]> git.mxchange.org Git - fba.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Sat, 14 Oct 2023 00:55:45 +0000 (02:55 +0200)
committerRoland Häder <roland@mxchange.org>
Sat, 14 Oct 2023 00:55:45 +0000 (02:55 +0200)
- also ignore empty content here, too

fba/http/federation.py

index d3c6daa2140106f60898a0555d930a6d7a1183f6..92daf564feaaf864d37040a68d56a9ab24baf70b 100644 (file)
@@ -302,7 +302,7 @@ def fetch_generator_from_path(domain: str, path: str = "/") -> str:
             if software is not None and software != "":
                 logger.info("domain='%s' is generated by software='%s' - Setting detection_mode=GENERATOR ...", domain, software)
                 instances.set_detection_mode(domain, "GENERATOR")
-        elif isinstance(app_name, bs4.element.Tag) and isinstance(app_name.get("content"), str):
+        elif isinstance(app_name, bs4.element.Tag) and isinstance(app_name.get("content"), str) and app_name.get("content") != "":
             logger.debug("Found property=og:app_name, domain='%s'", domain)
             software = tidyup.domain(app_name.get("content"))