camdendotlol / topstersorg

Book and music charts
https://topsters.org
GNU Affero General Public License v3.0
18 stars 9 forks source link

Can't pull correct IGDB results from Alternative Titles and Localized Titles #32

Open AlexKalopsia opened 10 months ago

AlexKalopsia commented 10 months ago

Hi, thanks for topster. I am currently running on a small issue where I am trying to search for an IGDB game (japanese version), but topster gets no results.

The use case is the game Winning Eleven 4 (japanese version of ISS Pro Evolution https://www.igdb.com/games/iss-pro-evolution)

image

Notice that the Localized entry (with its own Localized Title) does have its own Cover, and an assigned Alternative Name

image

image

Yet, when searching for ワールドサッカー実況ウイニングイレブン4, topster pulls the western cover. When searching for the alternative name World Soccer Jikkyou Winning Eleven 4, topster gets no results

camdendotlol commented 10 months ago

Interesting, it seems like localized variants have their own endpoint in the API.

Topsters just uses the search endpoint which only provides one entry per game. Their API allows for a SQL-like join system, so I might be able to get variants into the search somehow. I'll look into it when I get some time.

Last.fm and OpenLibrary also have variant covers that aren't represented in the Topsters search results, so I might try to build a more general variant cover feature if I can come up with a good UX for it.