Dr Lovegrove;143583 Wrote: 
> 
> How about having getrating return a percentage value as well as the old
> star-number value:
> 
> So:
> <mac> trackstat getrating 69831
> would return:
> <mac> trackstat getrating 69831 rating%3A3 percentage%3A60
> 
> In Moose I split the reply by spaces and count the arguments, so adding
> more arguments to a reply would cause moose to stop decoding it (and
> hence not crash, etc).. So this would be safest, then I could add
> support for the extra arguments in the next release..
> 
I'm afraid this doesn't seem to work as you think. When I added the
extra result parameter Moose doesn't show any ratings and it is also
not possible to change the ratings since they are not shown.

>From the Moose debug log:

Code:
--------------------
    
  Queuing: 00:4c:da:09:f8:30 trackstat getrating 63
  
  CLI dequeue: 00:4c:da:09:f8:30 trackstat getrating 63
  
  Reply: 00%3A4c%3Ada%3A09%3Af8%3A30 status - 1 tags%3Ajalydestru 
player_name%3A127.0.0.1 player_connected%3A1 power%3A1 mode%3Aplay time%3A0 
rate%3A1 duration%3A289.992 mixer%20volume%3A50 playlist%20repeat%3A2 
playlist%20shuffle%3A0 playlist_cur_index%3A1 playlist_tracks%3A13 
playlist%20index%3A1 id%3A63 title%3AI%20Have%20Nothing 
artist%3AWhitney%20Houston album%3AThe%20Bodyguard year%3A1992 
duration%3A289.992 album_id%3A7 artist_id%3A7 tracknum%3A2 
bitrate%3A128kbps%20VBR 
url%3Afile%3A%2F%2F%2FZ%3A%2Fmp3music_small%2FTesting%2FThe%2520Bodyguard%2F02%2520I%2520Have%2520Nothing.mp3
  pass = 0
  Reply: 00%3A4c%3Ada%3A09%3Af8%3A30 trackstat getrating 63 rating%3A0 
ratingpercentage%3A0
  
--------------------


Anyway, I'll make the new TrackStat version available for download in a
few minutes from my download page so you can debug by yourself. I'll add
a warning in the release note that it doesn't work with Moose 0.44 so
people can choose not to upgrade if they want to use Moose.


-- 
erland

Erland Isaksson
'My homepage' (http://erland.homeip.net) 'My download page'
(http://erland.homeip.net/download)
(Developer of 'TrackStat'
(http://erland.homeip.net/download/do/viewapplication?name=slimserver-trackstat)
, 'SQLPlayList'
(http://erland.homeip.net/download/do/viewapplication?name=slimserver-sqlplaylist)
, 'DynamicPlayList'
(http://erland.homeip.net/download/do/viewapplication?name=slimserver-dynamicplaylist),
'Custom Browse'
(http://erland.homeip.net/download/do/viewapplication?name=slimserver-custombrowse)
and 'RandomPlayList'
(http://erland.homeip.net/download/do/viewapplication?name=slimserver-randomplaylist)
plugins)
------------------------------------------------------------------------
erland's Profile: http://forums.slimdevices.com/member.php?userid=3124
View this thread: http://forums.slimdevices.com/showthread.php?t=28058

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/plugins

Reply via email to