parent
228ec7e024
commit
c3c3b8a209
1 changed files with 2 additions and 3 deletions
|
@ -38,9 +38,8 @@ for mod in glob.glob("pack/mods/*.toml"):
|
||||||
data = cache[id]
|
data = cache[id]
|
||||||
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"]
|
||||||
license["name"] = data["name"]
|
cache[id] = data
|
||||||
license["url"] = data["url"]
|
moddata["license"] = data
|
||||||
cache[id] = license
|
|
||||||
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