mirror of
https://github.com/rommapp/romm.git
synced 2026-12-02 10:08:40 +01:00
Move the response cap onto MetadataHandler as _fetch_capped and route Demozoo, Pouet, and CSDb through it. Only CSDb was capped before, while Demozoo and Pouet read an unbounded body into memory before decoding it. Pouet's title search now streams too: an ambiguous title answers 200 with HTML we never parse, but the body was still being buffered. Validate youtube_video_id where it is read rather than where Demozoo parses it. The four metadata blobs it reads from are writable through the raw_*_metadata form fields, so the id reaching the embed URL never had to come from a provider, and IGDB and LaunchBox never checked it at all. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>