]> git.mxchange.org Git - fba.git/commitdiff
Fixed:
authorRoland Häder <roland@mxchange.org>
Sun, 25 Jun 2023 10:13:23 +0000 (12:13 +0200)
committerRoland Häder <roland@mxchange.org>
Sun, 25 Jun 2023 10:13:23 +0000 (12:13 +0200)
- some lemmy instances uses a table, instead of an unsorted list for their
  /instances view

fba/networks/lemmy.py

index e8bba35004d4b0bbb5dd711620778bc7aa3f6c63..c8d0bad22863586b0f3795f6ea9eb139e73f6ec7 100644 (file)
@@ -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))