C* Music Player Audioscrobbler/Last.fm patch

Frank Terbeck wrote a patch for cmus that adds support for Audioscrobbler/Last.fm. He doesn’t use/maintain it any more, and was kind enough to allow me to take it over for him. I’ve updated it to reflect the current changes to the cmus codebase. I plan to take some time this summer to get it ready for mainline cmus inclusion. Until then, it’s just a patchset.

Download link and useage after the jump.

Applying the patch:

Just get a current copy of the git repository:

git clone git://repo.or.cz/cmus.git

Download the patch (version beta 4.1) into the cmus source dir, and patch it:

patch < cmus_audioscrobblerBETA41-githead.diff

Then configure/make/install, and you're set.

Usage:

It's pretty simple. Just add the lines

set as_enable=true
set as_user=(Your Last.fm Username)
set as_pass=(Your Last.fm Password)

to the cmus config file. Or just type them as ":set " commands in cmus.

Toggling listening statistics reporting off/on is accomplished by ":set as_enable=false"/"set as_enable=true" respectively.