You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make Discogs lookups visible, stoppable and resumable
A 1400-track lookup is an hour of work, and it showed nothing until the very
end: results were only applied when the whole run finished, and the cache was
only written in the final block. Stopping or crashing threw away every lookup
already paid for, and while it ran there was no way to tell it apart from a
hang.
Results now land in the Suggested column as they arrive, the status line
reports position, matches so far and rough time remaining, and Stop ends the
run keeping everything fetched. The cache is written every ten lookups, so a
stopped run resumes instead of restarting.
The estimate is also honest now: it counts only tracks that are not already
cached, and excludes ones with no artist or title, which could never match and
were previously costing 2.5 seconds each to ask about anyway.
An optional Discogs token can be saved to move from ~25 to ~60 requests per
minute. It is not required for anything.
Also imports urllib.error explicitly, which the 429 backoff path depended on
getting for free from urllib.request.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
0 commit comments