Skip to content

Commit

Permalink
fixing latest downloading canary
Browse files Browse the repository at this point in the history
  • Loading branch information
HobbitDur committed Oct 25, 2024
1 parent 53a1ae7 commit 61290ba
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,10 @@ def __get_github_url_file(self, mod: Mod, json_url="assets_url"):
json_file = json_file.json()
dd_url = ""
if mod.info['git_tag'] == 'latest':
dd_url = json_file[0][json_url]
for el in json_file:
if el['tag_name'] != "canary" and el['tag_name'] != "prerelease" and el['tag_name'].count('.') >=2:
dd_url =el[json_url]
break
else: # Searching the tag
for el in json_file:
if el['tag_name'] == mod.info['git_tag']:
Expand Down

0 comments on commit 61290ba

Please sign in to comment.