You are not logged in.

#1 2013-01-01 23:00:25

hagfish
Member
Registered: 2013-01-01
Posts: 21

[solved] MOC submitting %b as album name to last.fm

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

#2 2013-04-10 15:16:24

dakatapetrov
Member
From: Sofia, Bulgaria
Registered: 2012-01-15
Posts: 9
Website

Re: [solved] MOC submitting %b as album name to last.fm

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

#3 2013-04-10 15:27:22

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: [solved] MOC submitting %b as album name to last.fm

dakatapetrov wrote:

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.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

Board footer

Powered by FluxBB