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["site"] = "Modrinth"
|
||||
|
||||
if moddata["name"] in cache:
|
||||
if id in cache:
|
||||
print("Using cached value: " + data["name"])
|
||||
data = cache[id]
|
||||
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"]
|
||||
cache[id] = data
|
||||
elif "curseforge" in data["update"]:
|
||||
|
|
Loading…
Reference in a new issue