From cff7d0403edee4cf1623e723f96b43a9a6266ba4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sun, 25 Jun 2023 12:13:23 +0200 Subject: [PATCH] Fixed: - some lemmy instances uses a table, instead of an unsorted list for their /instances view --- fba/networks/lemmy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fba/networks/lemmy.py b/fba/networks/lemmy.py index e8bba35..c8d0bad 100644 --- a/fba/networks/lemmy.py +++ b/fba/networks/lemmy.py @@ -160,7 +160,7 @@ def fetch_blocks(domain: str, nodeinfo_url: str) -> list: logger.debug("domain='%s' is not blocking any instances - EXIT!", domain) return blocklist - blocking = found.find_next("ul").findAll("a") + blocking = found.find_next(["ul","table"]).findAll("a") logger.debug("Found %d blocked instance(s) ...", len(blocking)) for tag in blocking: logger.debug("tag[]='%s'", type(tag)) -- 2.39.5