From a67d35b9a4e4c152fad4111969be5bdf87e66c17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Finance?= Date: Wed, 17 Aug 2022 21:15:18 +0200 Subject: [PATCH] Compute the right URL for SteamAPI MediaDB entries fixes #40 --- src/api/apis/SteamAPI.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/apis/SteamAPI.ts b/src/api/apis/SteamAPI.ts index ef8f21d..b6eef99 100644 --- a/src/api/apis/SteamAPI.ts +++ b/src/api/apis/SteamAPI.ts @@ -100,7 +100,7 @@ export class SteamAPI extends APIModel { englishTitle: result.name, year: (new Date(result.release_date.date)).getFullYear().toString(), dataSource: this.apiName, - url: `https://store.steampowered.com/app/${result.id}`, + url: `https://store.steampowered.com/app/${result.steam_appid}`, id: result.steam_appid, genres: result.genres?.map((x: any) => x.description) ?? [],