You are not logged in.
I'm using moc-1:2.5beta1-1 and lastfmsubmitd-1.0.6-7. After following https://wiki.archlinux.org/index.php/Moc to setup scrobbling to last.fm, everything was fine, expect that the album name for any song submitted was "%b".
I managed to figure out a fix. In the wiki it is told that
OnSongChange = "/usr/lib/lastfmsubmitd/lastfmsubmit --artist %a --title %t --length %d --album %b" should be added to ~/.moc/config. However this line is wrong (at least for me), and instead it should be (%b is changed to %r):
OnSongChange = "/usr/lib/lastfmsubmitd/lastfmsubmit --artist %a --title %t --length %d --album %r" After adding this changed line to ~/.moc/config everything is working well.
The main reason I'm posting this is that I think the wiki should be changed. However, I don't understand the situation well enough to be confident that there actually is an error. Could someone with more experience confirm an edit should be made?
Offline
I had the same problem and your solution fixed it. Thanks.
After looking in .moc/config here's what i found:
# Run the OnSongChange command when a new song starts playing.
# Specify the full path (i.e. no leading '~') of an executable to run.
# Arguments will be passed, and you can use the following escapes:
#
# %a artist
# %r album
# %f filename
# %t title
# %n track
# %d file duration in XX:YY form
# %D file duration, number of seconds
#
# No pipes/redirects can be used directly, but writing a shell script
# can do the job.
#
# Example: OnSongChange = "/home/jack/.moc/myscript %a %r"Obviously %r is the correct escape for the album so the wiki page should be updated.
Offline
Obviously %r is the correct escape for the album so the wiki page should be updated.
What are you waiting for? You can edit the wiki yourself.
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline