Compute the right URL for SteamAPI MediaDB entries

fixes #40
This commit is contained in:
Cédric Finance 2022-08-17 21:15:18 +02:00 committed by GitHub
parent e4788750f7
commit a67d35b9a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) ?? [],