TheGamesDB2 / Website

TheGamesDB.net Repository - An open, online database for video game fans.
GNU General Public License v3.0
1 stars 2 forks source link

There is an issue retrieving games that have a space in their unique id #31

Open pete-oconnell opened 7 months ago

pete-oconnell commented 7 months ago

This was reported previously and appears to have been resolved with a regex pattern of (MK(-| |)\d{5}((-| |)\d{2}([A-Z]|)|)) being used.

flyinghead commented 7 months ago

I'm using the following API call to retrieve a game with uid T41401D 50:

https://api.thegamesdb.net/v1/Games/ByGameUniqueID?apikey=XXX&fields=overview,uids&include=boxart&filter%5Bplatform%5D=16&uid=T41401D%2050

The game in question is Soul Fighter (PAL) but the call returns 0 records.

flyinghead commented 7 months ago

Looking at the code it does seem to filter out space characters from the uid: https://github.com/TheGamesDB/TheGamesDBv2/blob/df83194004b5e62fd2a810d595415f2559e16c97/include/TGDB.API.php#L463