From 9b2f524bf708b5bfbf3e640d65c2fdc586429dc4 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 28 Jul 2023 19:44:39 -0300 Subject: Minimum upkeep --- lite.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lite.py b/lite.py index b4a5516..d552572 100755 --- a/lite.py +++ b/lite.py @@ -20,7 +20,7 @@ serverlist = [] #SERVERLIST = "http://localhost/launcher" VAULT_HOST = "https://api.themanaworld.org:13370" VAULT_CERT = False #"https://tmw2.org/launcher/cert.pem" -SERVERLIST = "https://tmw2.org/launcher" +SERVERLIST = "https://updates.tmw2.org/launcher" # Vault SSL wrapper vault=requests.Session() if VAULT_CERT: @@ -164,9 +164,8 @@ def launch_game(idx): return -1 ## Handle server type - if serverlist[idx]["Type"].lower() == "evol2": - CMD="manaplus" - OPT="-s %s -y evol2 -p %s -S" % (HOST, PORT) + CMD="manaplus" + OPT="-s %s -y %s -p %s -S" % (HOST, serverlist[idx]["Type"], PORT) ## Execute the app app=execute(san("%s %s%s" % (CMD, OPT, PWD)), shell=True) # nosec -- cgit v1.2.3-60-g2f50