Skip to content

Commit

Permalink
Update blender URL to use the mirror
Browse files Browse the repository at this point in the history
  • Loading branch information
LyzardKing committed Jan 6, 2024
1 parent 41cbb27 commit fea884a
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions umake/frameworks/games.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,9 @@ def parse_download_link(self, line, in_download):
"""Parse Blender download links"""
url = None
if 'linux-x64.tar.xz' in line:
p = re.search(r'href=\"(https:\/\/www\.blender\.org\/.*linux-x64\.tar\.xz).?"', line)
with suppress(AttributeError):
url = p.group(1)
filename = 'release' + re.search('blender-(.*)-linux', url).group(1).replace('.', '') + '.md5'
self.checksum_url = os.path.join(os.path.dirname(url),
filename).replace('download', 'release').replace('www', 'download')
p = re.search(r'href=\"https:\/\/www\.blender\.org\/download(.*linux-x64\.tar\.xz).?"', line)
url = "https://mirrors.dotsrc.org/blender/" + p.group(1)
print(url)
return ((url, None), in_download)

def post_install(self):
Expand Down

0 comments on commit fea884a

Please sign in to comment.