elif software in ["nextcloud social", "nextcloudpi", "storage share"]:
logger.debug("Setting nextcloud: software='%s'", software)
software = "nextcloud"
+ elif software == "activity-relay":
+ logger.debug("Setting activityrelay: software='%s'", software)
+ software = "activityrelay"
+ elif "owncast" in software:
+ logger.debug("Setting owncast: software='%s'", software)
+ software = "owncast"
+ elif software in ["streams-hubzilla-social", "streams13"]:
+ logger.debug("Setting streams: software='%s'", software)
+ software = "streams"
elif software == "roadhouse":
logger.debug("Setting hubzilla: software='%s'", software)
software = "hubzilla"
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(site_name, bs4.element.Tag) and isinstance(site_name.get("content"), str):
- logger.debug("Found property=og:site_name, domain='%s'", domain)
- software = tidyup.domain(site_name.get("content"))
-
- logger.debug("software[%s]='%s'", type(software), software)
- if software is not None and software != "":
- logger.debug("domain='%s' has og:site_name='%s' - Setting detection_mode=SITE_NAME ...", domain, software)
- instances.set_detection_mode(domain, "SITE_NAME")
elif isinstance(platform, bs4.element.Tag) and isinstance(platform.get("content"), str):
logger.debug("Found property=og:platform, domain='%s'", domain)
software = tidyup.domain(platform.get("content"))
if software is not None and software != "":
logger.debug("domain='%s' has og:platform='%s' - Setting detection_mode=PLATFORM ...", domain, software)
instances.set_detection_mode(domain, "PLATFORM")
+ elif isinstance(site_name, bs4.element.Tag) and isinstance(site_name.get("content"), str):
+ logger.debug("Found property=og:site_name, domain='%s'", domain)
+ software = tidyup.domain(site_name.get("content"))
+
+ logger.debug("software[%s]='%s'", type(software), software)
+ if software is not None and software != "":
+ logger.debug("domain='%s' has og:site_name='%s' - Setting detection_mode=SITE_NAME ...", domain, software)
+ instances.set_detection_mode(domain, "SITE_NAME")
elif not domain_helper.is_in_url(domain, response.url):
logger.warning("domain='%s' doesn't match response.url='%s', maybe redirect to other domain?", domain, response.url)
<li><b>AUTO_DISCOVERY</b>: <code>/.well-known/nodeinfo</code> was reachable and software type was found in nodeinfo response</li>
<li><b>STATIC_CHECK</b>: Node information was found by probing for well-known URLs</li>
<li><b>GENERATOR</b>: Meta data <code>generator</code> was found in HTML code</li>
- <li><b>SITE_NAME</b>: Meta data <code>og:site_name</code> was found in HTML code</li>
<li><b>PLATFORM</b>: Meta data <code>og:platform</code> was found in HTML code</li>
+ <li><b>SITE_NAME</b>: Meta data <code>og:site_name</code> was found in HTML code</li>
<li><b>None</b>: the instance was not reachable or the used software was not stated</li>
</ol>
</div>