MusicPlayerDaemon / mpdscribble

a MPD client which submits information about tracks being played to a scrobbler (e.g. last.fm)
GNU General Public License v2.0
114 stars 15 forks source link

verbose = 0 is still verbose, lastfm journal is not being updated when offline. #28

Closed gottaeat closed 3 years ago

gottaeat commented 3 years ago

i invoke mpdscribble with mpdscribble --conf /etc/mpdscribble.conf --verbose 0, which uses this configuration:

pidfile = /var/run/scribble.pid
daemon_user = mpd
log = /var/lib/mpd/scribble.log
verbose = 0
host = /var/lib/mpd/socket

[last.fm]
url = http://post.audioscrobbler.com/
username =
password =
journal = /var/lib/mpd/lastfm.journal

but even though verbose is set to 0 in both the cmdline and in the config, i see this with every song change:

2021-02-12T01:12:25+0300 new song detected (Fleetwood Mac - Big Love (Extended Remix; 2017 Remaster)), id: 86, pos: 85

2021-02-12T01:12:26+0300 [last.fm] submitting 1 song
2021-02-12T01:12:26+0300 [last.fm] post data: s=3f9ed5c53423bf62dec3858b507f6ee0&a[0]=Fleetwood%20Mac&t[0]=Big%20Love%20%28Extended%20Remix%3B%202017%20Remaster%29&l[0]=403&i[0]=1613081545&o[0]=P&r[0]=&b[0]=Tango%20In%20the%20Night%20%28Deluxe%20Edition%29&n[0]=1&m[0]=
2021-02-12T01:12:26+0300 [last.fm] url: http://post2.audioscrobbler.com:80/protocol_1.2
2021-02-12T01:12:27+0300 [last.fm] OK
2021-02-12T01:12:27+0300 [last.fm] sending 'now playing' notification
2021-02-12T01:12:27+0300 [last.fm] OK

according to the manpage: "2" logs infor-mational messages (e.g. "new song"); so if i understand that correctly, i shouldn't see what i am seeing above in my log file.

also when i render the system completely offline, i do not see /var/lib/mpd/lastfm.journal being created. i am only seeing errors in the log:

2021-02-12T01:21:15+0300 new song detected (Fleetwood Mac - Big Love (Extended Remix; 2017 Remaster)), id: 86, pos: 85

2021-02-12T01:21:16+0300 [last.fm] submitting 1 song
2021-02-12T01:21:16+0300 [last.fm] post data: s=3f9ed5c53423bf62dec3858b507f6ee0&a[0]=Fleetwood%20Mac&t[0]=Big%20Love%20%28House%20on%20the%20Hill%20Dub%3B%202017%20Remaster%29&l[0]=181&i[0]=1613082075&o[0]=P&r[0]=&b[0]=Tango%20In%20the%20Night%20%28Deluxe%20Edition%29&n[0]=2&m[0]=
2021-02-12T01:21:16+0300 [last.fm] url: http://post2.audioscrobbler.com:80/protocol_1.2
2021-02-12T01:21:16+0300 [last.fm] submit error: CURL failed:
2021-02-12T01:21:16+0300 [last.fm] waiting 60 seconds before trying again
2021-02-12T01:22:16+0300 [last.fm] submitting 1 song
2021-02-12T01:22:16+0300 [last.fm] post data: s=3f9ed5c53423bf62dec3858b507f6ee0&a[0]=Fleetwood%20Mac&t[0]=Big%20Love%20%28House%20on%20the%20Hill%20Dub%3B%202017%20Remaster%29&l[0]=181&i[0]=1613082075&o[0]=P&r[0]=&b[0]=Tango%20In%20the%20Night%20%28Deluxe%20Edition%29&n[0]=2&m[0]=
2021-02-12T01:22:16+0300 [last.fm] url: http://post2.audioscrobbler.com:80/protocol_1.2
2021-02-12T01:22:16+0300 [last.fm] submit error: CURL failed:
2021-02-12T01:22:16+0300 [last.fm] waiting 120 seconds before trying again
2021-02-12T01:24:16+0300 [last.fm] submitting 1 song
2021-02-12T01:24:16+0300 [last.fm] post data: s=3f9ed5c53423bf62dec3858b507f6ee0&a[0]=Fleetwood%20Mac&t[0]=Big%20Love%20%28House%20on%20the%20Hill%20Dub%3B%202017%20Remaster%29&l[0]=181&i[0]=1613082075&o[0]=P&r[0]=&b[0]=Tango%20In%20the%20Night%20%28Deluxe%20Edition%29&n[0]=2&m[0]=
2021-02-12T01:24:16+0300 [last.fm] url: http://post2.audioscrobbler.com:80/protocol_1.2
2021-02-12T01:24:16+0300 [last.fm] submit error: CURL failed:
2021-02-12T01:24:16+0300 [last.fm] waiting 240 seconds before trying again

both mpd and mpdscribble are running as user mpd which has read+write access to /var/lib/mpd.

 0 ~: mpdscribble --version | head -1; mpd --version | head -1
mpdscribble version 0.23
Music Player Daemon 0.21.10 (0.21.10)

am i doing something wrong?

grandchild commented 2 years ago

I just noticed something similar today. It seems the verbose config setting is inverse. 0 means to log everything(?), 1 and 2 log a bit less and it seems that 3+ doesn't log anything anymore?

I noticed this because I had auth issues, and the only log level that did show me the actual error ("username or password incorrect") was 0.