parent
e4c30de3d2
commit
4a41b93fcf
1 changed files with 3 additions and 2 deletions
|
@ -33,10 +33,11 @@ for mod in glob.glob("pack/mods/*.toml"):
|
||||||
moddata["url"] = "https://modrinth.com/mod/" + id
|
moddata["url"] = "https://modrinth.com/mod/" + id
|
||||||
moddata["site"] = "Modrinth"
|
moddata["site"] = "Modrinth"
|
||||||
|
|
||||||
if moddata["name"] in cache:
|
if id in cache:
|
||||||
|
print("Using cached value: " + data["name"])
|
||||||
data = cache[id]
|
data = cache[id]
|
||||||
else:
|
else:
|
||||||
print("Not in cache:" + id)
|
print("Not in cache: " + id + " - " + data["name"])
|
||||||
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
|
||||||
elif "curseforge" in data["update"]:
|
elif "curseforge" in data["update"]:
|
||||||
|
|
Loading…
Reference in a new issue