mirror of
https://github.com/rommapp/romm.git
synced 2026-11-28 17:48:31 +01:00
Four points from the PR review: - Leave the process-global ScreenScraper state alone when a scan does not use ScreenScraper. DEV_MODE runs scans in-process, so overlapping scans could otherwise clear each other's learned limits and skipped ROMs. - Return pacing to the defaults when the per-scan state resets. Priming re-reads the account moments later; should that fail, the conservative default is safe for whatever account the credentials now name, whereas the previous scan's allowance may be more than this one is entitled to. - Stop a rate-limited ROM from trying the next lookup. A refusal that survives the retry now propagates out of the handler and is caught once per ROM in fetch_ss_rom, instead of being swallowed per call site and sending the caller on to spend another retried request against a budget that is already gone. _is_daily_quota_error excludes the rate-limit 429 so the two stay distinct. - Hand the request slot back before inspecting and re-encoding a cover, so local image work no longer holds a ScreenScraper thread. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>