Update smash.gg urls

And add a todo list
master
Lertsenem 2024-05-24 09:11:39 +02:00
parent 9ae221c6d7
commit aeb97e62d1
2 changed files with 6 additions and 2 deletions

View File

@ -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))

4
todo.org Normal file
View File

@ -0,0 +1,4 @@
#+TITLE: todo list
-------------------------------------------------------------------------------
* Ajouter les dessins de Mael en bonus
* Ajouter perso "random"