mirror of
https://github.com/rommapp/romm.git
synced 2026-11-29 10:01:00 +01:00
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>