Exclude forums.terraria.org from url transforms

This forum uses the same invalid url scheme as the Paradox forums, so
needs to be excluded as well.
This commit is contained in:
Deimos
2020-05-15 15:24:44 -06:00
parent b011be34ef
commit d5453cf286

View File

@@ -47,8 +47,8 @@ def _is_exempt_from_transformations(parsed_url: ParseResult) -> bool:
if not parsed_url.hostname:
return True
# Paradox forums use an invalid url scheme that will break if processed
if parsed_url.hostname == "forum.paradoxplaza.com":
# Paradox and Terraria forums use an invalid url scheme that will break if processed
if parsed_url.hostname in ("forum.paradoxplaza.com", "forums.terraria.org"):
return True
return False