This commit is contained in:
2026-02-10 10:27:45 +03:00
parent e6bc69aa3e
commit 85d1e2be85
5 changed files with 96 additions and 16 deletions
+3 -2
View File
@@ -34,12 +34,13 @@ data = {
def modify_game_list(json: dict) -> dict:
if 'games' in json.keys():
apps = (3301060, 404790, 1281930, 1920960, 1325960, 431960)
new_games = []
new_games = {}
for i, g in enumerate(json['games']):
if g['appid'] not in apps:
json['games'][i]['h_cover'] = f"https://shared.fastly.steamstatic.com/store_item_assets//steam/apps/{g['appid']}/header.jpg"
json['games'][i]['v_cover'] = f"https://shared.fastly.steamstatic.com/store_item_assets//steam/apps/{g['appid']}/library_600x900.jpg"
new_games.append(json['games'][i])
new_games[g['appid']] = json['games'][i]
json['games'] = new_games
return json