navidrome/adapters/lastfm
Deluan 45509d0155 fix(lastfm): return agents.ErrNotFound on error 6 (not found)
Last.fm returns error 6 for a missing artist/album — a definitive negative —
but the agent returned the raw *lastFMError, so the artwork worker treated
every not-found as a real fault: it counted toward the per-source circuit
breaker (5 in a row opens it, fast-failing all Last.fm calls including valid
ones) and was retried as a transient error instead of settling absent. On a
first scan of a library with many artists Last.fm lacks, this stalled valid
cover lookups and left entities churning in backoff.

Translate error 6 to the shared agents.ErrNotFound at the agent boundary
(callAlbumGetInfo / callArtistGetInfo), matching how the Deezer agent maps its
client's not-found, and log it at Debug instead of Error — which also removes
the not-found log spam.
2026-07-24 18:06:17 -04:00
..
agent.go fix(lastfm): return agents.ErrNotFound on error 6 (not found) 2026-07-24 18:06:17 -04:00
agent_test.go fix(lastfm): return agents.ErrNotFound on error 6 (not found) 2026-07-24 18:06:17 -04:00
auth_router.go fix(lastfm): require signed state token on link callback (#5521) 2026-05-23 12:16:15 -03:00
auth_router_test.go fix(lastfm): require signed state token on link callback (#5521) 2026-05-23 12:16:15 -03:00
client.go feat(agents): support multiple languages for Last.fm and Deezer metadata (#4952) 2026-01-29 13:05:51 -05:00
client_test.go feat(agents): support multiple languages for Last.fm and Deezer metadata (#4952) 2026-01-29 13:05:51 -05:00
lastfm_suite_test.go refactor: move agent files to adapters for consistency 2026-01-14 19:33:54 -05:00
link_token.go fix(lastfm): require signed state token on link callback (#5521) 2026-05-23 12:16:15 -03:00
responses.go feat: add similar songs functionality in agents, and Instant Mix (song-based) to UI (#4919) 2026-01-25 16:16:43 -05:00
responses_test.go refactor: move agent files to adapters for consistency 2026-01-14 19:33:54 -05:00
token_received.html refactor: move agent files to adapters for consistency 2026-01-14 19:33:54 -05:00