From caf0706d22fd993f688a1f5f1e0b34845b66bed8 Mon Sep 17 00:00:00 2001 From: kramo <93832451+kra-mo@users.noreply.github.com> Date: Fri, 28 Apr 2023 18:58:16 +0200 Subject: [PATCH] Fix GOG path check --- src/importers/heroic_importer.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/importers/heroic_importer.py b/src/importers/heroic_importer.py index fac6921..c176cc6 100644 --- a/src/importers/heroic_importer.py +++ b/src/importers/heroic_importer.py @@ -116,7 +116,7 @@ def heroic_importer(win): if not win.schema.get_boolean("heroic-import-gog"): pass elif (heroic_dir / "gog_store" / "installed.json").exists() and ( - heroic_dir / "gog_store" / "library.json" + heroic_dir / "store_cache" / "gog_library.json" ).exists(): installed = json.load((heroic_dir / "gog_store" / "installed.json").open()) @@ -136,8 +136,10 @@ def heroic_importer(win): importer.save_game() continue - # Get game title and developer from library.json as they are not present in installed.json - library = json.load((heroic_dir / "store_cache" / "gog_library.json").open()) + # Get game title and developer from gog_library.json as they are not present in installed.json + library = json.load( + (heroic_dir / "store_cache" / "gog_library.json").open() + ) for game in library["games"]: if game["app_name"] == app_name: values["developer"] = game["developer"]