tmp
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user