Scrobble music playing from Rackit.
I really like Rackit for playing music. But I hate when what I listen to isn't scrobbled to Last.fm. So I made a quick fix for that
For now it will be a matter of cloneing:
git clone git://github.com/Reprazent/rackit_scrobbler.git
after that:
bundle install
You can create the config file with:
bundle exec rake config
Make sure rackmate is running and then do a:
bundle exec rake start
The first time this should pop up a browser asking you to allow access to last.fm. After that return to your terminal and hit enter to start scrobbling.
Start playing music using rackmate. It will set the now playing state on your profile ate every beginning of a song. Scrobble after you played 1/3th of the song.
The output should look something like this:
Playing Wolves At The Gate: Captors - Step Out of the Water
Scrobbled Wolves At The Gate: Captors - Step Out of the Water
- Set the correct song when when opening the socket. So whe can start scrobbling when started after rackmate was playing. (Now the scrobbling will start next song)
- Catch errors when scrobbling and retry (for example when connection drops for a second).
- Block double scrobbles (When stopping and starting scrobbler again)
- Make it a proper gem so people can
gem install
,rackit config
andrackit start
. But eventmachine seems to be acting up here. - Maybe add some tests. I started this as a quick fix for the scrobbling problem. But had fun doing it, so I intend to use this as a play-project.
- Suggestions? Add an issue!
- bugs? Add an issue!
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request