eniklas / gamatrix

Inspect GOG DBs and report the games in common between them
Mozilla Public License 2.0
11 stars 3 forks source link

Get IGDB data for non-Steam games #24

Closed eniklas closed 3 years ago

eniklas commented 3 years ago

Following the work from https://github.com/eniklas/gamatrix-gog/issues/18, we need to see if we can get multiplayer data from IGDB for non-Steam games. For Steam games, the keys match up in IGDB, but they don't for other platforms. For instance, if you have the keys:

steam_1234
gog_3456

You can search for platform Steam, external ID 1234, and you'll find it. But you won't find ID 3456, with or without specifying GOG as the platform.

If we can't get it from IGDB, we could look at other data sources, but that's a lot of work if we can avoid it.

eniklas commented 3 years ago

https://medium.com/rawg/launching-public-api-for-the-largest-video-game-database-in-the-world-fa260a336079 might be a way to get the non-Steam keys we need to match up with IGDB. That API doesn't look to have max player data so I went with IGDB, but it does claim to have data from all online stores, so worth a look.

eniklas commented 3 years ago

https://github.com/eniklas/gamatrix-gog/pull/70 takes care of more than a third of non-Steam titles; we now have less than 15% of titles with no multiplayer info. I'll leave this open until I spot check a few of those to see if there's any more we can do.

eniklas commented 3 years ago

Added a lookup by slug in https://github.com/eniklas/gamatrix-gog/pull/74, https://github.com/eniklas/gamatrix-gog/pull/75, and https://github.com/eniklas/gamatrix-gog/pull/77; we can now get IGDB IDs for 97% of games. That's pretty dang good. Closing this out.