mirror of
https://github.com/rommapp/romm.git
synced 2026-11-28 17:48:31 +01:00
Steam covers the PC platforms RomM otherwise has thin metadata for, and its store payload is provider-grade on its own: title, description, portrait capsule art, screenshots, genres, developers, publishers, release date and Metacritic score, with no API key. Valve documents no storefront API, so this reads the two endpoints that back the store's own search box and app pages, paced well under the ~200 requests per 5 minutes they tolerate. Every failure path degrades to "no match" rather than aborting a scan, and the provider is opt-in behind STEAM_API_ENABLED, matching HowLongToBeat and Flashpoint. Matching is gated on the platform slug so the three PC platforms are the only ones that spend a request. The storefront's search index carries DLC, soundtracks and tools alongside games, so hits are filtered by type and then confirmed against the app page, which is the only place a demo or a video is distinguishable from a game. A (steam-12345) filename tag pins a match by hand when the title is ambiguous. SteamMetadata reuses the key names the other providers already use for the values they share, so wiring Steam into the generated facet columns later is a SQL change with no stored-row reshaping. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>