Compare commits
2 Commits
26840e7a40
...
1.0.1
| Author | SHA1 | Date | |
|---|---|---|---|
| ba18af4a70 | |||
| d977b2b621 |
@@ -101,6 +101,7 @@ def fetchall_vdfs(steam_vdf_json: dict):
|
||||
for library in steam_vdf_json["libraryfolders"]:
|
||||
path = steam_vdf_json['libraryfolders'][library]['path']
|
||||
steamapps = os.path.join(path, "steamapps")
|
||||
try:
|
||||
for game in os.listdir(steamapps):
|
||||
if game.endswith(".acf"):
|
||||
gameID = int(game.split('.')[0].split('_')[1])
|
||||
@@ -112,4 +113,6 @@ def fetchall_vdfs(steam_vdf_json: dict):
|
||||
parsed_game['workshop_path'] = os.path.join(steamapps, "workshop", "content", str(gameID)) if os.path.exists(os.path.join(steamapps, "workshop", "content", str(gameID))) else ""
|
||||
games.append(parsed_game)
|
||||
# print("Game name:", parsed_game['name'], "ID:", gameID, "Path:", parsed_game['true_path'])
|
||||
except Exception as e:
|
||||
print(f"Error processing folder {steamapps}: {e}")
|
||||
return games
|
||||
|
||||
Reference in New Issue
Block a user