Files
romm/backend/handler/database
Sam Dornan 7c010ca732 fix(backend): weight a rating by the votes behind it in the cold-start feed
`average_rating` averages whatever providers happened to rate a game, so a
lone ScreenScraper 10/10 is indistinguishable from a broad consensus. The
cold-start feed ordered by that rating alone.

On a real 12.7k library exactly fourteen games scored a perfect 100, every one
of them a single ScreenScraper score with IGDB unrated. The feed returns
fifteen results, so it was reduced to listing those fourteen alphabetically:
"The Adventures of Batman & Robin", "Adventures of Lolo", "American Bass
Challenge", "Aussie Rules Footy". This is the first thing a new install shows
anyone, since nobody has play history on day one.

Storing IGDB's vote count lets the feed use a Bayesian average, shrinking a
rating toward the library mean in proportion to how little evidence backs it.
The same library now opens with A Link to the Past (1,710 votes), Uncharted 2
(2,216), Ocarina of Time (2,138) and GTA: San Andreas (4,012).

Games with no vote count -- most of them, since only IGDB reports one -- land
at the library mean rather than dropping out, which a test pins.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-07 22:11:42 -05:00
..
2025-09-04 11:17:00 -03:00
2026-03-12 23:02:12 -04:00
2026-08-01 14:49:58 -04:00
2026-04-06 22:29:55 -04:00
2026-07-19 22:59:37 -04:00