FireFly Media Server (formerly mt-daapd) › Firefly Media Server Forums › Firefly Media Server › Feature Requests › AudioScrobbler / last.fm support
- This topic has 53 replies, 18 voices, and was last updated 10 years, 11 months ago by
pcace.
-
AuthorPosts
-
24th June 2006 at 2:27 pm #387
t0m
Participantron,
in january 2005 you wrote
I’m definately going to add audioscrobbler support, because it’s just too damn cool.
I hope this is still on your roadmap….
shouldn’t be to hard to implement some code like http://www.frob.nl/scribble-download.html in dispatch.c under the /* update play counts */ section….
unfortunately I don’t have any programing skills – otherwise I’d have it implemented on my own….
/t0m
24th June 2006 at 4:38 pm #5215rpedde
Participant@t0m wrote:
shouldn’t be to hard to implement some code like http://www.frob.nl/scribble-download.html in dispatch.c under the /* update play counts */ section….
yes, but I was going to put that in a separate plug-in.
— Ron
24th June 2006 at 4:53 pm #5216t0m
Participant@rpedde wrote:
yes, but I was going to put that in a separate plug-in.
thanks for the fast reply…. looking forward to the plugin….
/t0m
24th November 2006 at 2:45 pm #5217-Ra-
GuestI’m a new user to firefly… thank you for the great software 😀
I’m just wondering if and when you’ll add last.fm scrobbling support to make this the perfect media server.26th November 2006 at 11:01 pm #5218riro
Participant@-Ra- wrote:
I’m a new user to firefly… thank you for the great software 😀
I’m just wondering if and when you’ll add last.fm scrobbling support to make this the perfect media server.Found a bash-script somewhere on this forum that did the trick for me. Well.. a bit of the trick. You need rockscrobbler too.
http://www.misticriver.net/photos/displayimage.php?album=lastup&cat=22288&pos=0
#!/bin/bash
SQLITE="sqlite3"
DATABASE="/opt/var/mt-daapd/songs3.db"
ROCKDIR=$HOME/rockscrobbler
OUTLOG=$ROCKDIR/firefly-scrobbler.log
LASTFILE=$ROCKDIR/scrobbler.date
ROCKPL=$ROCKDIR/rockscrobbler.pl
LASTUSER=Rupstjarn55
LASTPWD=mypwd
cd $ROCKDIR
if [ -e $LASTFILE ]
then
. $LASTFILE
else
LASTRUN=0
fi
echo "#AUDIOSCROBBLER/1.0" > $OUTLOG
echo "#TZ/UNKNOWN" >> $OUTLOG
echo "#CLIENT/Firefly svn-1281" >> $OUTLOG
$SQLITE $DATABASE 'SELECT artist,album,title,track,song_length,time_played FROM songs where time_played > '$LASTRUN' ORDER BY time_played ASC;' | awk -F '|' '{ printf "%st%st%st%st%dtLt%sn",$1,$2,$3,$4,$5/600,$6 }' >> $OUTLOG
echo "LASTRUN="`date +%s` > $LASTFILE
perl $ROCKPL -u $LASTUSER -p $LASTPWD -f $OUTLOG -d $ROCKDIR/ -t 0
7th January 2007 at 7:53 pm #5219thorstenhirsch
ParticipantAnd will there be a non-tricky solution for last.fm, too?
8th January 2007 at 4:09 pm #5220riro
Participant@thorstenhirsch wrote:
And will there be a non-tricky solution for last.fm, too?
Isnt that tricky…
You need:
– the script above
– rockscrobbler
– one cron jobIt works like:
1. The script creates a logfile that rockscrobbler needs
2. Rockscrobbler posts the info to last.fm
3. The script runs every XX minutes (I run it every 20 minutes) with the cron-job.Rockscrobbler can be found at http://www.misticriver.net/photos/displayimage.php?album=lastup&cat=22288&pos=0
btw, the 2 lines in the script that starts with “$SQLITE $DAT”… and that ends with “…>> $OUTLOG” should be on the same line.
4th February 2007 at 3:48 pm #5221smbrannan
ParticipantJust wondering if/when firefly will communicate with last.fm.
I’ve tried the script technique described in this thread but it doesn’t work for me. Probably because I don’t really know much/anything about making these sorts of scripts work in OS X.
It sure would be cool if last.fm support was somehow packaged with firefly.
4th February 2007 at 11:33 pm #5222rpedde
Participant@smbrannan wrote:
Just wondering if/when firefly will communicate with last.fm.
I’ve tried the script technique described in this thread but it doesn’t work for me. Probably because I don’t really know much/anything about making these sorts of scripts work in OS X.
It sure would be cool if last.fm support was somehow packaged with firefly.
Yes, I want it too, I’m just slow and lame. 🙂
I’ve started on the lua scripting stuff already, but it’s just taking longer than I hoped. I’m learning as go with the lua stuff. I hope to have some simple scripts in the the next couple nightlies, though.
Once that’s done, then I think the last.fm scripting stuff will be fairly easy.
— Ron
5th February 2007 at 10:44 pm #5223smbrannan
Participant@rpedde wrote:
Once that’s done, then I think the last.fm scripting stuff will be fairly easy.
— Ron
Sounds good – thanks for the update. I’ll be looking for it – will you make some sort of announcement?
S
6th February 2007 at 12:52 am #5224rpedde
Participant@smbrannan wrote:
@rpedde wrote:
Once that’s done, then I think the last.fm scripting stuff will be fairly easy.
— Ron
Sounds good – thanks for the update. I’ll be looking for it – will you make some sort of announcement?
S
There is an rss feed at http://nightlies.mt-daapd.org. That will have notes when I’ve added it.
– Ron
17th May 2007 at 12:29 am #5225djurnove
ParticipantA few questions about the script:
1. My songs db is “songs.gdb”, not “songs3.db”. As long as I change the path in the script, will this matter? Are they two different db formats?
2. My slug doesn’t seem to have sqlite installed – any tips on installing it, or where to to find it if it is already installed?
Thanks!
17th May 2007 at 7:35 am #5226t0m
Participant@djurnove wrote:
A few questions about the script:
1. My songs db is “songs.gdb”, not “songs3.db”. As long as I change the path in the script, will this matter? Are they two different db formats?
songs3.db is sqlite3 format
songs.db is sqlite2 format
songs.gdb is another textbased(?) format.the script was/is for sqlite databases only – sorry.
17th May 2007 at 7:45 am #5227t0m
ParticipantI’ve modified the rockscrobbler perl script by noleti so you actually only need one script.
this script supports compilations. You can download it from:
http://rapidshare.com/files/31760952/firescrobbler.zip
this is a sqlite3 version – for sqlite2 add use DBD::SQLite2;
I’ve been testing this script for two weeks now (cronjob running every 5 minutes) – its working fine for me.
/t0m17th May 2007 at 1:08 pm #5228djurnove
ParticipantIs there a way to change my installation (on an NSLU2) to use sqlite instead of gdb? There doesn’t seem to be an option in the cfg file.
-
AuthorPosts
- The forum ‘Feature Requests’ is closed to new topics and replies.