Fix import from Heroic if no Epic games
This commit is contained in:
@@ -112,6 +112,7 @@ def heroic_parser(parent_widget, action):
|
||||
open_file.close()
|
||||
library = json.loads(data)
|
||||
|
||||
try:
|
||||
for game in library["library"]:
|
||||
if not game["is_installed"]:
|
||||
continue
|
||||
@@ -150,6 +151,8 @@ def heroic_parser(parent_widget, action):
|
||||
save_cover(values, parent_widget, image_path)
|
||||
|
||||
heroic_games[values["game_id"]] = values
|
||||
except KeyError:
|
||||
pass
|
||||
|
||||
# Import GOG games
|
||||
if not schema.get_boolean("heroic-import-gog"):
|
||||
|
||||
Reference in New Issue
Block a user