mirror of
https://github.com/rommapp/romm.git
synced 2026-11-28 17:48:31 +01:00
ScreenScraper returns the account's allowances on every response, but only maxthreads was read. Use the rest: - Pace requests against the reported maxrequestspermin (falling back to the documented threads x 50), so fast lookups can no longer overrun the per-minute budget without ever exceeding the thread cap. - Report the remaining daily and unrecognized-ROM quotas after each platform and at the end of a scan, and warn once when either drops below 10%. - Hint once per scan when SCAN_WORKERS is below the thread allowance (scans slower than the account allows) or above it (extra workers just queue). - Raise a distinct error when a request is refused twice for exceeding the rate, so the ROM is reported as skipped in the scan summary instead of being saved with no ScreenScraper data. - Route ScreenScraper media downloads (covers, screenshots, manuals, mixed media) through the same limiters, since they are api2 endpoints that count against the same allowances, and derive their timeout from the account's advertised download speed. Fixes #3978 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>