From 9a3ce91f3af6bfc9ab69ba4c9be3c07a230ab644 Mon Sep 17 00:00:00 2001 From: Matt Gleich Date: Tue, 30 Jul 2024 23:57:38 -0400 Subject: [PATCH] feat: library hero and hero logo Signed-off-by: Matt Gleich --- internal/apis/steam/games.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/apis/steam/games.go b/internal/apis/steam/games.go index 8c501e2..7f87c6a 100644 --- a/internal/apis/steam/games.go +++ b/internal/apis/steam/games.go @@ -34,6 +34,8 @@ type game struct { URL string `json:"url"` HeaderURL string `json:"header_url"` LibraryURL *string `json:"library_url"` + LibraryHeroURL string `json:"library_hero_url"` + LibraryHeroLogoURL string `json:"library_hero_logo_url"` AchievementProgress *float32 `json:"achievement_progress"` Achievements *[]achievement `json:"achievements"` } @@ -101,6 +103,8 @@ func fetchRecentlyPlayedGames() []game { URL: fmt.Sprintf("https://store.steampowered.com/app/%d/", g.AppID), HeaderURL: fmt.Sprintf("https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/%d/header.jpg", g.AppID), LibraryURL: libraryURLPtr, + LibraryHeroURL: fmt.Sprintf("https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/%d/logo.png", g.AppID), + LibraryHeroLogoURL: fmt.Sprintf("https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/%d/library_hero.jpg", g.AppID), AchievementProgress: achievementPercentage, Achievements: achievements, })