mirror of
https://github.com/rommapp/romm.git
synced 2026-06-28 06:46:00 +00:00
IGDB scans dropped games whose filename uses a localized (non-English) title even when that title exists in IGDB's alternative_names. The alternative_name wildcard search surfaced the correct game, but _search_rom() rebuilt its name->game candidate dict using only the primary English name, so the Jaro-Winkler re-check scored the localized term below threshold and discarded the match (issue #3435). Add _index_games_by_searchable_name(), which indexes each game by its primary name plus alternative_names and game_localizations titles, and use it for both candidate-building passes in _search_rom(). Primary names keep precedence (lowest-igdb-id tiebreak); alternative/ localization titles fill in only names not already claimed. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>