speedcontrol / nodecg-speedcontrol

NodeCG bundle to help facilitate the running of speedrunning marathons, including overlays.
MIT License
44 stars 34 forks source link

First implementation of Twitch Search API as backup #6

Closed Planks closed 7 years ago

Planks commented 7 years ago

Speedrun.com and Twitch both handle searches slightly differently so match on different games. At the moment priority is given to Speedrun.com as that's the data we can manage and edit. Twitch is a backup mostly for games that don't use Speedrun.com at all - good example is Super Metroid.

I've run it through the current dataset for DHW with only a couple of misses that can be fixed by game names in schedule. It makes some assumptions. It makes a case insensitive but otherwise exact comparison to Speedrun.com. Like I said before - we have access to fix this data so it should be precise to begin with. When falling back to twitch it strips (words in parenthesis) and punctuation. Please install, test and watch console output to see how it performs.