parent
f09ae99eca
commit
a5fdf9b7fb
1 changed files with 4 additions and 11 deletions
|
@ -16,17 +16,10 @@ for mod in glob.glob("pack/mods/*.toml"):
|
|||
|
||||
# there has to be a better way to do this
|
||||
|
||||
try:
|
||||
print("MR: " + data.update.modrinth["mod-id"])
|
||||
url = "https://modrinth.com/mod/" + data.update.modrinth["mod-id"]
|
||||
except:
|
||||
noop()
|
||||
|
||||
try:
|
||||
print("CF: " + data.update.curseforge["mod-id"])
|
||||
url = "http://dev.bukkit.org/bukkit-plugins/" + data.update.curseforge["mod-id"]
|
||||
except:
|
||||
noop()
|
||||
if "modrinth" in data["update"]:
|
||||
url = "https://modrinth.com/mod/" + data["update"]["modrinth"]["mod-id"]
|
||||
elif "curseforge" in data["update"]:
|
||||
url = "http://dev.bukkit.org/bukkit-plugins/" + data["update"]["curseforge"]["mod-id"]
|
||||
|
||||
print(data)
|
||||
mods[data["name"]] = url
|
||||
|
|
Loading…
Reference in a new issue