From 6b83965b7836f70f496cd61e5a9ec4cbefb444ba Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Tue, 5 Dec 2023 02:01:06 +0100 Subject: [PATCH] Continued: - added another alias 'lycheebridge' for 'misskey' --- fba/commands.py | 2 +- fba/helpers/software.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fba/commands.py b/fba/commands.py index 97b43cf..8027683 100644 --- a/fba/commands.py +++ b/fba/commands.py @@ -1708,11 +1708,11 @@ def fetch_relays(args: argparse.Namespace) -> int: logger.info("Checking %d relays ...", len(rows)) for row in rows: logger.debug("row[domain]='%s',row[software]='%s' ...", row["domain"], row["software"]) - peers = list() if not args.force and instances.is_recent(row["domain"]): logger.debug("row[domain]='%s' has been recently fetched - SKIPPED!", row["domain"]) continue + peers = list() try: if row["software"] == "pub-relay": logger.info("Fetching row[nodeinfo_url]='%s' from relay row[domain]='%s',row[software]='%s' ...", row["nodeinfo_url"], row["domain"], row["software"]) diff --git a/fba/helpers/software.py b/fba/helpers/software.py index 90fa5c5..eff6eb5 100644 --- a/fba/helpers/software.py +++ b/fba/helpers/software.py @@ -61,7 +61,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"] 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"] 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"]: -- 2.39.5