Skip to content

Commit

Permalink
feat: library hero and hero logo
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Gleich <[email protected]>
  • Loading branch information
gleich committed Jul 31, 2024
1 parent 37498c4 commit b0798ba
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/apis/steam/games.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
}
Expand Down Expand Up @@ -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/library_hero.jpg", g.AppID),
LibraryHeroLogoURL: fmt.Sprintf("https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/%d/logo.png", g.AppID),
AchievementProgress: achievementPercentage,
Achievements: achievements,
})
Expand Down

0 comments on commit b0798ba

Please sign in to comment.