mirror of
https://github.com/rommapp/romm.git
synced 2026-11-29 01:58:41 +01:00
The platform sync clears `missing_from_fs` before the batch loop runs, so a rom being scanned can no longer tell that it was missing, and the fold left the skip path (which could tell) unreachable for a quick scan. A rom whose file came back byte for byte therefore emitted nothing and kept its stale badge. Collect the restored roms from the snapshot the loop already takes, for the ones it visits as well as the ones it skips. Cleanups on the same paths: - hoist the quick reconcile above the metadata prelude it never reads, which was a config file parse and a tag parse per rom - drop the unreachable quick clause from `_should_hash_incrementally`: `refresh_rom_files` owns that policy - drop `RomFilesRefresh.files`, which nothing reads - take the refresh lock without a guard that had nothing to protect - fold the single-caller upload destination helpers into one - give "a quick scan needs no metadata source" one home, and read the refresh title from the key rom.json already owns Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>