elif "json" in data and len(data["json"]) > 0:
logger.debug("Querying API path='%s' was successful: domain='%s',data[json][%s]()=%d", path, domain, type(data['json']), len(data['json']))
peers = data["json"]
+
+ logger.debug("Marking domain='%s' as successfully handled ...")
instances.set_success(domain)
break
if "error_message" not in data:
nodeinfo = data["json"]
+
+ logger.debug("Marking domain='%s' as successfully handled ...")
instances.set_success(domain)
logger.debug("Found entries: nodeinfo()=%d,domain='%s'", len(nodeinfo), domain)
logger.debug("Found JSON data()=%d", len(data))
instances.set_detection_mode(domain, "AUTO_DISCOVERY")
instances.set_nodeinfo_url(domain, link["href"])
+
+ logger.debug("Marking domain='%s' as successfully handled ...")
instances.set_success(domain)
break
else:
elif "federated_instances" in data["json"] and isinstance(data["json"]["federated_instances"], dict):
logger.debug("Found federated_instances for domain='%s'", domain)
peers = peers + federation.add_peers(data["json"]["federated_instances"])
+
+ logger.debug("Marking domain='%s' as successfully handled ...")
instances.set_success(domain)
else:
logger.warning("JSON response does not contain 'federated_instances', domain='%s' - trying /instances ...", domain)
logger.debug("Appending peer='%s' ...", peer)
peers.append(peer)
+ logger.debug("Marking domain='%s' as successfully handled ...")
+ instances.set_success(domain)
+
except network.exceptions as exception:
logger.warning("domain='%s',exception[%s]:'%s'", domain, type(exception), str(exception))
instances.set_last_error(domain, exception)
else:
# Getting blocklist
rows = data["json"]
+
+ logger.debug("Marking domain='%s' as successfully handled ...")
instances.set_success(domain)
if len(rows) == 0:
logger.debug("domain='%s' is blacklisted - settings False ...", domain)
wanted = False
elif domain.find("/profile/") > 0 or domain.find("/users/") > 0 or (instances.is_registered(domain.split("/")[0]) and domain.find("/c/") > 0):
- loger.debug("domain='%s' is a single user", domain)
+ logger.debug("domain='%s' is a single user", domain)
wanted = False
elif domain.find("/tag/") > 0:
logger.debug("domain='%s' is a tag", domain)