From: Roland Häder Date: Sun, 10 Dec 2023 22:44:35 +0000 (+0100) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=de7796d68975116a56450258ec82a567e1dac96d;p=fba.git Continued: - added alias 'goblin' for 'misskey' - added debug line --- diff --git a/fba/commands.py b/fba/commands.py index c87e624..2e36ee4 100644 --- a/fba/commands.py +++ b/fba/commands.py @@ -959,6 +959,7 @@ def fetch_instances(args: argparse.Namespace) -> int: origin = row["origin"] software = row["software"] + logger.debug("software='%s'", software) if software is None: logger.warning("args.domain='%s' has no software detected. You can try to run ./fba.py update_nodeinfo --domain=%s --force to get it updated.", args.domain, args.domain) return 102 diff --git a/fba/helpers/software.py b/fba/helpers/software.py index 821660d..285ff15 100644 --- a/fba/helpers/software.py +++ b/fba/helpers/software.py @@ -55,7 +55,7 @@ def alias(software: str) -> str: elif software in ["hometown", "ecko", "fedibird", "glitchcafe"] or "되는 마스토돈" in software or "mastodon" in software: logger.debug("Setting mastodon: software='%s'", software) software = "mastodon" - elif software in ["slipfox calckey", "calckey", "groundpolis", "foundkey", "cherrypick", "meisskey", "magnetar", "keybump", "dolphin", "calckey social", "azk.sns", "firefish", "qtmmsky", "iceshrimp", "owohub", "re+", "russkey", "loverskey", "hajkey", "sharkey", "renekey", "renekey-lite", "yoiyami", "catnip", "cyberskey", "catodon", "lycheebridge"] or "shumihub" in software or "мисскей" in software or "milkey" in software or "misskey" in software: + elif software in ["slipfox calckey", "calckey", "groundpolis", "foundkey", "cherrypick", "meisskey", "magnetar", "keybump", "dolphin", "calckey social", "azk.sns", "firefish", "qtmmsky", "iceshrimp", "owohub", "re+", "russkey", "loverskey", "hajkey", "sharkey", "renekey", "renekey-lite", "yoiyami", "catnip", "cyberskey", "catodon", "lycheebridge", "goblin"] or "shumihub" in software or "мисскей" in software or "milkey" in software or "misskey" in software: logger.debug("Setting misskey: software='%s'", software) software = "misskey" elif software in ["runtube.re", "islameye"]: