1
0
mirror of https://github.com/Escartem/AnimeWwise.git synced 2026-06-05 07:50:23 +08:00

fixes for updates

This commit is contained in:
Escartem
2025-02-03 11:56:44 +01:00
parent 820b0eec4c
commit cbf36d5d88
5 changed files with 5 additions and 6 deletions

5
app.py
View File

@@ -100,12 +100,11 @@ class UpdaterWorker(QObject):
for i in range(n_games):
current = currentMaps["maps"][i]
latest = latestMaps["maps"][i]
name = f"maps/{latest['name']}"
if ver(current["version"]) < ver(latest["version"]):
if (ver(current["version"]) < ver(latest["version"])) or not os.path.isfile(name):
self.progress.emit([5 + game_size * i, f'Updating {latest["game"]} to {latest["version"]}'])
name = f"maps/{latest['name']}"
url = f"https://raw.githubusercontent.com/Escartem/AnimeWwise/master/{name}"
urllib.request.urlretrieve(url, "maps/temp.map")