mirror of
https://github.com/rommapp/romm.git
synced 2026-12-04 12:52:19 +01:00
From review. get_rom_screenshots recorded a path for every url whether or not the download landed, pointing the database at files that were never written. Only record paths that made it to disk, and decide the early return by counting files on disk rather than trusting the recorded list, so a set left short by a failed run is retried instead of being frozen by an unchanged url set. The existing with-urls test asserted the old behaviour with a stand-in that wrote nothing, so it now writes the files it claims to store. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>