Implement Bottles parser

This commit is contained in:
kramo
2023-02-02 18:29:09 +01:00
parent 325820758e
commit 24dd082681
9 changed files with 179 additions and 49 deletions

View File

@@ -77,7 +77,7 @@ def steam_parser(parent_widget, action):
open_file.close()
for datatype in datatypes:
value = re.findall("\"" + datatype + "\"\t\t\"(.*)\"\n", data)
values [datatype] = value[0]
values[datatype] = value[0]
values["game_id"] = "steam_" + values["appid"]
@@ -92,6 +92,7 @@ def steam_parser(parent_widget, action):
if os.path.isfile(os.path.join(steam_dir, "appcache", "librarycache", values["appid"] + "_library_600x900.jpg")):
values["pixbuf_options"] = save_cover(values, parent_widget, os.path.join(steam_dir, "appcache", "librarycache", values["appid"] + "_library_600x900.jpg"))
steam_games[values["game_id"]] = values
if len(steam_games) == 0: