diff --git a/extension.yaml b/extension.yaml index 7f52bc4..f91b7ad 100644 --- a/extension.yaml +++ b/extension.yaml @@ -1,7 +1,7 @@ Id: PCGamingWikiMetadata_c038558e-427b-4551-be4c-be7009ce5a8d Name: PCGamingWiki Metadata Provider Author: sharkusmanch -Version: 1.2.3 +Version: 1.2.4 Module: PCGamingWikiMetadata.dll Type: MetadataProvider Icon: icon.png diff --git a/manifest.yaml b/manifest.yaml index b500879..0b8ab6a 100644 --- a/manifest.yaml +++ b/manifest.yaml @@ -1,5 +1,11 @@ AddonId: PCGamingWikiMetadata_c038558e-427b-4551-be4c-be7009ce5a8d Packages: +- Version: 1.2.4 + RequiredApiVersion: 6.11.0 + ReleaseDate: 2024-02-16 + PackageUrl: https://github.com/sharkusmanch/playnite-pcgamingwiki-metadata-provider/releases/download/v1.2.4/PCGamingWiki_Metadata_Provider_v1.2.4.pext + Changelog: + - Fix search matching for game titles containing apostrophe - Version: 1.2.3 RequiredApiVersion: 6.11.0 ReleaseDate: 2024-02-16 diff --git a/src/PCGWClient.cs b/src/PCGWClient.cs index d7a6494..472901e 100644 --- a/src/PCGWClient.cs +++ b/src/PCGWClient.cs @@ -48,7 +48,8 @@ public JObject ExecuteRequest(RestRequest request) private string NormalizeSearchString(string search) { - return search.Replace("-", " "); + // Replace ' with " as a workaround for search API returning no results + return search.Replace("-", " ").Replace("'", "\""); } public List SearchGames(string searchName)