Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (16 sloc) 772 Bytes
TODO:
Write tests!
More conditions/error handling. See below.
Ensure that error code 9 (bad session) is specially handled.
Ensure that error codes other than 9,11,16 do not result in re-sent scrobbles?
-- Last.fm seems to suggest other errors indicate malformed requests.
BUGS:
Fix DNS reacquisition on suspend/resume network hop.
Ideas:
Add conditions/error-handling for:
-- get-api-keys, request-user-auth, lastfm-call, authorize-scrobbling
-- If an API call fails because we lack a valid session, kick off authorize!
Defcall can't support optional args.
-- Not a priority but a "nice to have" later.
At some point, we should support "switching users", i.e. auth a new session.
-- This can be done crudely now by just deleting the session file on disk and restarting.