Inspired by this, I too looked at this and gave it a whirl. After
messing with the script for a while, I finally got it to run. I had
the same path problem as others.
If anyone's interested, I integrated the volume control too, works well
since both Amarok and SS use a 0-100 volume range. Since everyone's
script is probably a little different, I'll put just the needed parts
below:
def vol_change(slimserver_ip, slimserver_port, squeezebox_player):
volume = quote(getoutput("dcop amarok player getVolume"))
url =
'http://%(ip)s:%(port)s/status_header.html?p0=mixer&p1=volume&p2=%(vol)s&player=%(player)s'
% { 'ip': slimserver_ip, 'port': slimserver_port, 'vol': volume,
'player': squeezebox_player }
result = urlopen(url)
#For the subroutine &
elif "volumeChange" in notification: vol_change(slimserver_ip,
slimserver_port, squeezebox_player)
#just above the elif "empty" line
The pause issue bugs me, seems like it should work without issue, but
it certainly doesn't.
As well, there's the time differntial so some of the SB songs get cut
off when Amarok finishes it's song and switches to another. The last
issue is that if the files are supposed to play gapless, they won't
come close to gapless playback. Via Amarok, I can't see a way to find
out what the NEXT song in the playlist is to add it to the SS playlist.
Anyone have any ideas? Thanks,
--
verbatone
------------------------------------------------------------------------
verbatone's Profile: http://forums.slimdevices.com/member.php?userid=3556
View this thread: http://forums.slimdevices.com/showthread.php?t=34842
_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/unix