Skip to content

Commit

Permalink
Adapt to the changes in godot download page (#698)
Browse files Browse the repository at this point in the history
* change in godot download page

* remove unused import

* update godot icon svg

* refine regex to better capture zip url

* use svg instead of png logo

* update regex to skip parsing earlier tokens
  • Loading branch information
Jeffrey04 committed Jun 27, 2024
1 parent 521ea73 commit 425268c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion umake/frameworks/games.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def parse_download_link(self, line, in_download):
url = None
if '{}.zip'.format(self.arch_trans[get_current_arch()]) in line:
in_download = True
p = re.search(r'(.*\.zip)', line)
p = re.search(r'href=\"?([^\s]+\.zip)', line)
with suppress(AttributeError):
url = p.group(1)
bin = re.search(r'(Godot.*)\.zip', url)
Expand Down

0 comments on commit 425268c

Please sign in to comment.