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
|
# there has to be a better way to do this
|
||||||
|
|
||||||
try:
|
if "modrinth" in data["update"]:
|
||||||
print("MR: " + data.update.modrinth["mod-id"])
|
url = "https://modrinth.com/mod/" + data["update"]["modrinth"]["mod-id"]
|
||||||
url = "https://modrinth.com/mod/" + data.update.modrinth["mod-id"]
|
elif "curseforge" in data["update"]:
|
||||||
except:
|
url = "http://dev.bukkit.org/bukkit-plugins/" + data["update"]["curseforge"]["mod-id"]
|
||||||
noop()
|
|
||||||
|
|
||||||
try:
|
|
||||||
print("CF: " + data.update.curseforge["mod-id"])
|
|
||||||
url = "http://dev.bukkit.org/bukkit-plugins/" + data.update.curseforge["mod-id"]
|
|
||||||
except:
|
|
||||||
noop()
|
|
||||||
|
|
||||||
print(data)
|
print(data)
|
||||||
mods[data["name"]] = url
|
mods[data["name"]] = url
|
||||||
|
|
Loading…
Reference in a new issue