Getting the download URL of a specific mod and version #12
-
Hi ! I saw that it was possible to get the download URL of a specific version by using the PrimaryFile of a version of the mod. I wanted to know if it was possible to get the version "code" of a mod by providing infos like game version, mod version, or loader. Do you think it is already possible ? Then, how am I supposed to do to achieve this objective. What I want to do :
In hope you have something for me. Bwapt |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Realistically more advanced filters should be implemented import modrinth
project = modrinth.Projects.ModrinthProject('sodium')
versions = project.getAllVersions()
print([i for i in versions if "1.20" in i.gameVersions]) Please tell me if this solves your problem! Thanks, |
Beta Was this translation helpful? Give feedback.
Realistically more advanced filters should be implemented
getVersion
, but at this time you can usegetAllVersions
and filter through them. Here's an example of how that would work:Please tell me if this solves your problem!
Thanks,
Daniel