From: Roland Häder Date: Tue, 23 May 2023 04:43:17 +0000 (+0200) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8d7c7dab0e72970463a7112bbce175ddf6314ef2;p=fba.git Continued: - found a Japanese "limited server" phrase --- 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(