instances.set_has_obfuscation(blocker, True)
# Some obscure them with question marks, not sure if that's dependent on version or not
- row = instances.deobfuscate("?", block["blocked"] if "hash" in block else None)
+ row = instances.deobfuscate("?", block["blocked"], block["hash"] if "hash" in block else None)
logger.debug("row[]='%s'", type(row))
if row is None:
string = string.split("/profile/")[0]
elif string.find("/users/"):
string = string.split("/users/")[0]
+ elif string.find("/tag/"):
+ string = string.split("/tag/")[0]
logger.debug("string='%s' - EXIT!", string)
return string
elif instance.find("/profile/") > 0 or instance.find("/users/") > 0 or (instances.is_registered(instance.split("/")[0]) and instance.find("/c/") > 0):
logger.debug("instance='%s' is a link to a single user profile - SKIPPED!", instance)
continue
+ elif instance.find("/tag/") > 0:
+ logger.debug("instance='%s' is a link to a tag - SKIPPED!", instance)
+ continue
elif not instances.is_registered(instance):
logger.debug("Adding new instance='%s',domain='%s',command='%s'", instance, domain, command)
instances.add(instance, domain, command)
raise Exception(f"domain='{domain}' is blacklisted, but method invoked")
elif domain.find("/profile/") > 0 or domain.find("/users/") > 0 or (is_registered(domain.split("/")[0]) and domain.find("/c/") > 0):
raise Exception(f"domain='{domain}' is a single user")
+ elif domain.find("/tag/") > 0:
+ raise Exception(f"domain='{domain}' is a tag")
if software is None:
try:
elif blacklist.is_blacklisted(domain):
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)
+ wanted = False
+ elif domain.find("/tag/") > 0:
+ logger.debug("domain='%s' is a tag", domain)
+ wanted = False
logger.debug("wanted='%s' - EXIT!", wanted)
return wanted