parent
067d5edc55
commit
dd2d3e3f4f
1 changed files with 3 additions and 0 deletions
|
@ -37,6 +37,9 @@ for mod in glob.glob("pack/mods/*.toml"):
|
||||||
else:
|
else:
|
||||||
data = requests.get("https://api.modrinth.com/v2/project/" + id).json()["license"]
|
data = requests.get("https://api.modrinth.com/v2/project/" + id).json()["license"]
|
||||||
cache[id] = data
|
cache[id] = data
|
||||||
|
|
||||||
|
print(data)
|
||||||
|
exit
|
||||||
elif "curseforge" in data["update"]:
|
elif "curseforge" in data["update"]:
|
||||||
moddata["url"] = "https://legacy.curseforge.com/projects/" + str(data["update"]["curseforge"]["project-id"])
|
moddata["url"] = "https://legacy.curseforge.com/projects/" + str(data["update"]["curseforge"]["project-id"])
|
||||||
moddata["site"] = "CurseForge"
|
moddata["site"] = "CurseForge"
|
||||||
|
|
Loading…
Reference in a new issue