Files
romm/backend
Sam Dornan f245642d98 fix(steam): read appdetails envelope keyed by another app ID (#4774)
* fix(steam): read appdetails envelope keyed by another app ID

Steam's appdetails endpoint keys some responses by a different ID than
the one requested (e.g. app 242820 "140" comes back under its DLC ID
662290), so the lookup by the requested ID missed and the scraper
returned no metadata. Only one app is requested per call, so fall back
to the sole envelope when the requested key is absent.

Fixes #4773

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QRCSTxaQC8momzANdULG7H

* fix(steam): only accept a re-keyed envelope for the requested app

Validate that the sole envelope is a mapping whose data.steam_appid
matches the requested app before using it, so a mismatched or malformed
response degrades to no result.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QRCSTxaQC8momzANdULG7H

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-25 10:33:59 -05:00
..
2025-07-05 19:17:40 -04:00