mirror of
https://github.com/rommapp/romm.git
synced 2026-11-28 17:48:31 +01:00
Review of the artwork-provenance work turned up two gaps behind the cleanup. The new skip gate compared files on disk against the number of urls, so a permanently dead url held the count below the target forever and every scan refetched the entire set. Going index by index refetches only what is absent, and lets `_store_screenshot` report success instead of the caller stating the file back off the disk it just wrote. The SGDB block still read `path_cover_s` to decide whether a cover was hand supplied, the inferred marker `locked_fields` exists to replace. That also shielded scraped covers from a better ranked source, which is the behaviour this branch set out to fix, so it now asks the lock like the block above it. The rest is cleanup: drop the dead `screenshots_exist`, give the column one normal form across its writers, hoist the duplicated clear-out dict in `delete_rom_manuals`, and drop the blanket backfill UPDATE, since a NULL already reads as "no locks" everywhere. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>