mariusor / mpris-scrobbler

A minimalistic user daemon to submit the songs you're playing to audioscrobbler services like listenbrainz.org, libre.fm and last.fm.
MIT License
151 stars 6 forks source link

mpris-scrobbler-signon session lastfm does nothing #37

Closed ibrokemypie closed 6 years ago

ibrokemypie commented 6 years ago

running mpris-scrobbler-signon session lastfm pauses for a while then doesnt actually do anything but remove the token from the credentials file. Using -vvv gives the following output

mpris-scrobbler-signon -vvv session lastfm
DEBUG   main::loading_credentials: ok
INFO    signon::getting_session_key: last.fm
DEBUG   saving::credentials[1]: /home/conor/.config/mpris-scrobbler/credentials
INFO    signon::daemon_reload[19174]: ok
mariusor commented 6 years ago

I'm not sure if it was your problem, but I fixed getting the token in 729acfb.

Install the new version (v0.2.51) and make sure to run the authentication sequence in order:

$ mpris-scrobbler-signon -vvv token lastfm

$ mpris-scrobbler-signon -vvv session lastfm

PS. If it still doesn't work, please post here full output (with token and session id censored)

ibrokemypie commented 6 years ago

Ah, sorry, the AUR version wasnt updated as I thought it was. Seems to have worked now, thought it still doesnt seem to be scrobbling

 cat .config/mpris-scrobbler/credentials
[lastfm]
enabled = true
username = ibro****ie
token = oeis****************sedf
session = adsj************ssdf

EDIT Sorry, just had to restart the daemon service, seems to be working now!

mariusor commented 6 years ago

I'm glad to hear it. I'll try to see why it didn't load the file automatically though, because at the end, the signon sequence should send the -HUP signal to the daemon to reload the credentials.

Thank you for your time.