diff --git a/scripts/submissions.py b/scripts/submissions.py index 2c31d0a..a07cd9d 100755 --- a/scripts/submissions.py +++ b/scripts/submissions.py @@ -6,8 +6,9 @@ import re EXCLUDE = [ - "cRmOY2t0", # (WeatherSync) Not updated yet - "9pGITjpO" # (Rapscallions and Rockhoppers) Pulls latest from NeoForge ver + "wild-magix", # Not approved yet? + "weathersync", # Not updated yet + "rapscallions-and-rockhoppers" # Pulls latest from NeoForge ver ] platform_data = json.loads(requests.get("https://platform.modfest.net/submissions").text) @@ -16,20 +17,19 @@ submissions = [] for participant_id, participant in participant_data["participants"].items(): for mod in participant["submissions"]: - if mod not in EXCLUDE: - submissions.append(mod) + submissions.append(mod) input_str = "" with open('server.toml', 'r') as f: input_str = f.read() for mod in platform_data: - if mod["id"] in submissions and not mod["slug"] in input_str: + if mod["id"] in submissions and not mod["slug"] in input_str and not mod["slug"] in EXCLUDE: run(['mcman', 'i', 'url', mod["download_url"].replace(mod["id"], mod["slug"])]) with open('server.toml', 'r') as f: input_str = f.read() for mod in platform_data: - if mod["id"] in submissions: + if mod["id"] in submissions and not mod["slug"] in EXCLUDE: # Regexes may not be the intended solution, but they sure are a solution input_str = re.sub( r"\[\[mods\]\]\ntype = \"modrinth\"\nid = \"%modid%\"\nversion = \".{8}\"" diff --git a/server.toml b/server.toml index 6ebb77d..7c01005 100644 --- a/server.toml +++ b/server.toml @@ -381,11 +381,6 @@ type = "modrinth" id = "the-skys-the-limit" version = "4eOE93dU" -[[mods]] -type = "modrinth" -id = "wild-magix" -version = "XaEApfFN" - [worlds.modfest-1-20] [markdown]