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]
|
||||
else:
|
||||
data = requests.get("https://api.modrinth.com/v2/project/" + id).json()["license"]
|
||||
license["name"] = data["name"]
|
||||
license["url"] = data["url"]
|
||||
cache[id] = license
|
||||
cache[id] = data
|
||||
moddata["license"] = data
|
||||
elif "curseforge" in data["update"]:
|
||||
moddata["url"] = "https://legacy.curseforge.com/projects/" + str(data["update"]["curseforge"]["project-id"])
|
||||
moddata["site"] = "CurseForge"
|
||||
|
|
Loading…
Reference in a new issue