Files
romm/backend/tests/utils
Sam Dornan 656c5d7d23 fix(media): stop recording paths for media that never landed
Metadata providers record where each media file should live at match time,
and the path was persisted whether or not the download produced a file. A
non-200 response, an unexpected content type, a transport error, or a
discarded ScreenScraper chroma-key placeholder all leave nothing on disk,
so the ROM kept pointing at a file that was never there.

Local gamelist/Pegasus exports then warned once per ROM per phantom asset
and left an empty assets/<subdir>/ behind, and the frontend built box-face
URLs that 404.

store_media_file now reports whether the file is on disk afterwards, and
store_metadata_media clears the *_path entry for anything that didn't land
while keeping the *_url so a later scan can retry. Both exporters skip a
missing source quietly instead of warning, and no longer create the
destination directory before knowing the source exists.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-05 14:54:45 -05:00
..
2026-03-07 23:08:54 -05:00
2026-04-02 10:21:43 -04:00
2025-09-04 11:17:00 -03:00
2026-07-19 20:35:51 -04:00
2026-07-19 15:16:38 -04:00
2026-06-18 21:12:13 -04:00