This commit is contained in:
kramo
2023-04-02 07:20:05 +02:00
parent 6899246d01
commit b511ce22b7
5 changed files with 21 additions and 13 deletions

View File

@@ -44,7 +44,7 @@ def heroic_parser(parent_widget):
)
elif os.name == "nt" and (Path(os.getenv("appdata")) / "heroic").exists():
schema.set_string(
"heroic-location", str(Path((os.getenv("appdata") / "heroic")))
"heroic-location", str(Path(os.getenv("appdata") / "heroic"))
)
else:
return
@@ -196,7 +196,7 @@ def heroic_parser(parent_widget):
/ "images-cache"
/ hashlib.sha256(item["art_square"].encode()).hexdigest()
)
if image_path.extsts():
if image_path.exists():
importer.save_cover(values["game_id"], image_path)
importer.save_game(values)