This tutorial will explain how to submit track info to last.fm (audioscrobbler) when you use cmus. For those who don't know it, cmus is a text-based music player for unix-like systems and it just rocks!
Everything is explained here, but I will recap it, now that you're reading.
I asume you have cmus installed and have a last.fm account. If not:
sudo apt-get install cmus
and/or go to http://www.last.fm/join/ to get a last.fm account
1. Download the script
http://nex.scrapping.cc/code/post-fm/post-fm
put the script in ~/.cmus, and make it executable
2. Install the script
run cmus:
cmus
and type:
:set status_display_program=/home/username_here/.cmus/post-fm
3. Enter your last.fm account information
nano /home/username/.cmus/post-fm
and enter your login and password. Save it
4. Check it
If you have a recent version of cmus, you can check the settings window by typing '7' and scrolling down till the end where
status_display_program /home/username/.cmus/post-fm
should be stated.
Now play a track and check your last.fm profile. The scripts is written in such a way that it will only submit tracks that are nearly finished playing. So don't expect it to submit it right away.
That's all!
for more information visit http://nex.scrapping.cc/code/post-fm/
Comments
Any idea on how to disable caching? I looked at nex.scrapping.cc but there's no contact info. I'm running cmus on a flash-based system and I try
to keep disk writes as minimal as possible (verging on the paranoid here but that's what I do). I suppose if I could programme I could easily do it myself
but any help would be appreciated.
You mean caching the trackinfo when you are not connected to the internet? If this is what you mean, I would use another TUI/CLI mp3 player. It will be easier, or like you said, code it.
Hello!
I followed your guide, and I have to say it's very useful! I also linked it here, but I have to say that I had to substitute post.fm with post-fm in all the commands and the settings, because that is the name of the file I downloaded from the link you provided.
I just wanted to warn you, because maybe someone could not be aware of this and maybe could think the guide is not correct, only because he downloaded a file with another name ;-)
Have a nice day
MarKco
Hey MarKco,
thanks a lot!
Couple of weeks ago I noticed the author of the script changed his website. I thought I only needed to edit the links in the post, but as you say it appears I also have to change the file names.
in the commands and setting. I'm on it :)
Thanks,
Funk
I used to use mpd with mpdscribble and sonata (and mpc for fluxbox keybindings), but I kept having this alsa issue where it would lock up, and also lock up any other programs using sound until I killed it.
closets
thanks guy,i also learned how to do while your questioning,!
DVD Converter for Mac ||
Post new comment