parent
9ae221c6d7
commit
aeb97e62d1
|
@ -192,7 +192,7 @@ def get_infos_from_url(
|
|||
|
||||
url_parsed = urllib.parse.urlparse(url)
|
||||
|
||||
if url_parsed.netloc not in [ "smash.gg", "start.gg" ]:
|
||||
if url_parsed.netloc not in [ "smash.gg", "start.gg", "www.smash.gg", "www.start.gg" ]:
|
||||
raise ValueError("Unsupported domain name")
|
||||
if outform not in [ "dict", "lkrz" ]:
|
||||
raise ValueError("Unsupported outform")
|
||||
|
@ -202,7 +202,7 @@ def get_infos_from_url(
|
|||
event = None
|
||||
|
||||
# -------------------------------------------------------------------------
|
||||
if url_parsed.netloc in [ "smash.gg", "start.gg" ]:
|
||||
if url_parsed.netloc in [ "smash.gg", "start.gg", "www.smash.gg", "www.start.gg" ]:
|
||||
|
||||
if (url_parsed.path.split("/")[1] != "tournament"):
|
||||
log.error("Incomplete URL '{}'".format(url))
|
||||
|
|
Loading…
Reference in New Issue