"Silenced instances" : "Silenced servers",
"Suspended instances" : "Suspended servers",
"Limited instances" : "Limited servers",
+ "Filtered media" : "Filtered media",
# Mappuing German -> English
"Gesperrte Server" : "Suspended servers",
"Gefilterte Medien" : "Filtered media",
if header_text in language_mapping:
# DEBUG: print(f"DEBUG: header_text='{header_text}'")
header_text = language_mapping[header_text]
+ else:
+ print(f"WARNING: header_text='{header_text}' not found in language mapping table")
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
"reason": tidyup_domain(line.find_all("td")[1].text),
}
)
+ else:
+ print(f"WARNING: header_text='{header_text}' not found in blocks()={len(blocks)}")
# DEBUG: print("DEBUG: Returning blocks for domain:", domain)
return {