Kod: Markera allt
:~$ cat .moc/config
ReadTags = yes
MusicDir = "/home/jojan/musik/"
Shuffle = yes
OnSongChange = "/usr/lib/lastfmsubmitd/lastfmsubmitd -a %a -t %t -l %d -l %r"
:~$ sudo cat /etc/lastfmsubmitd.conf | grep -v pass # Tar bort lösenordet
[account]
user = Jojan
:~$ sudo groups jojan
jojan : jojan adm dialout cdrom plugdev lpadmin admin sambashare lastfm
:~$ lastfmsubmitd
lastfmsubmitd: no account info found; exiting
:~$
Kod: Markera allt
class LsdConfig(lastfm.config.Config):
def __init__(self):
lastfm.config.Config.__init__(self, name=DAEMON_NAME)
self.url = self.cp.get('server', 'url', SERVER_URL)
self.user = self.cp.get('account', 'user', None)
self.password = self.cp.get('account', 'password', None)
if not (self.user and self.password):
raise NoAccountError
Utöver detta får jag detta smått underliga felet, som kanske är en följd av att de inte hittar mina uppgifter i /etc/sumbmit.conf
Kod: Markera allt
:~$ lastfmsubmitd --artist Test
lastfmsubmitd: option --artist not recognized
usage: lastfmsubmitd [--debug] [--no-daemon] [--no-network] [--help]
:~$
:~$ man lastfmsubmitd | grep artist
lastfmsubmit [--encoding ENC] [--artist ARTIST] [--title TITLE]
-a, --artist
Specify the song's artist name. Artist, title, and length are
:~$