mirror of
https://github.com/rommapp/romm.git
synced 2026-12-04 21:02:21 +01:00
HTTP 431 means a ROM did not match and the daily cap on proposing unknown ROMs for review is reached; scraping is unaffected, so it becomes a not-found with one informational line per scan instead of a refusal that takes the provider out. HTTP 431 is really two answers at once and only one of them concerns the scan. The scrape allowance (430) still trips a breaker, since every remaining ROM would otherwise cost a round trip to be told the same thing, but it now arms only after repeated refusals, ignores the ones already in flight when a refusal was counted, and re-checks the free account endpoint so it recovers without a scan to reset it. The account check can no longer arm it at all. A recoverable breaker can clear itself while a rom is still gathering its other providers, so a complete rescan read it as having answered and wiped the rom's id. It is now sampled where ScreenScraper is consulted. The manual-match search gathers every provider without return_exceptions, so it now swallows an exhausted ScreenScraper the way the scan lookups do. Fixes #4123 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>