FireFly Media Server › Firefly Media Server Forums › Firefly Media Server › Feature Requests › AudioScrobbler / last.fm support
- This topic has 53 replies, 18 voices, and was last updated 14 years, 7 months ago by pcace.
-
AuthorPosts
-
24/06/2006 at 2:27 PM #387t0mParticipant
ron,
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
24/06/2006 at 4:38 PM #5215rpeddeParticipant@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
24/06/2006 at 4:53 PM #5216t0mParticipant@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
24/11/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.26/11/2006 at 11:01 PM #5218riroParticipant@-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
07/01/2007 at 7:53 PM #5219thorstenhirschParticipantAnd will there be a non-tricky solution for last.fm, too?
08/01/2007 at 4:09 PM #5220riroParticipant@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.
04/02/2007 at 3:48 PM #5221smbrannanParticipantJust 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.
04/02/2007 at 11:33 PM #5222rpeddeParticipant@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
05/02/2007 at 10:44 PM #5223 -
AuthorPosts
- The forum ‘Feature Requests’ is closed to new topics and replies.