From 8d7c7dab0e72970463a7112bbce175ddf6314ef2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Tue, 23 May 2023 06:43:17 +0200 Subject: [PATCH] Continued: - found a Japanese "limited server" phrase --- fba.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fba.py b/fba.py index c08a224..dc29ffd 100644 --- a/fba.py +++ b/fba.py @@ -437,6 +437,7 @@ def get_mastodon_blocks(domain: str) -> dict: "Gefilterte Medien" : "Filtered media", "Stummgeschaltete Server" : "Silenced servers", "停止済みのサーバー" : "Suspended servers", + "制限中のサーバー" : "Limited servers", "メディアを拒否しているサーバー": "Filtered media", "サイレンス済みのサーバー" : "Silenced servers", "שרתים מושעים" : "Suspended servers", @@ -462,7 +463,7 @@ def get_mastodon_blocks(domain: str) -> dict: if header_text in translations: header_text = translations[header_text] - if header_text in blocks: + if header_text in blocks or header_text.lower() in blocks: # replaced find_next_siblings with find_all_next to account for instances that e.g. hide lists in dropdown menu for line in header.find_all_next("table")[0].find_all("tr")[1:]: blocks[header_text].append( -- 2.39.5