From db6098b7fe33514f8ef422c3a53980d90b79b676 Mon Sep 17 00:00:00 2001 From: Sectorbob Date: Wed, 30 Mar 2022 11:47:46 -0400 Subject: [PATCH] fix SteamGrid search call for game names that include `/` character --- UWPHook/SteamGridDb/SteamGridDbApi.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/UWPHook/SteamGridDb/SteamGridDbApi.cs b/UWPHook/SteamGridDb/SteamGridDbApi.cs index b340a9f..e57a3eb 100644 --- a/UWPHook/SteamGridDb/SteamGridDbApi.cs +++ b/UWPHook/SteamGridDb/SteamGridDbApi.cs @@ -33,7 +33,8 @@ namespace UWPHook.SteamGridDb /// Array of games corresponding to the provided name public async Task SearchGame(string gameName) { - string path = $"search/autocomplete/{gameName}"; + // remove any forward slashes in the gameName to allow Games like FINAL FANTASY X/X-2 HD Remaster to be found + string path = $"search/autocomplete/{gameName.Replace('/', ' ')}"; GameResponse[] games = null; HttpResponseMessage response = await httpClient.GetAsync(path);