MrSinatra;395157 Wrote: 
> 
> however, unlike what you are saying, WMP and Media Monkey seem to do it
> the same, (according to that link) except that only MM is mentioned
> supporting the - sign for "half a star" (yet i think WMP also supports
> half stars)
> 
> so, what uses the 0 to 255 or 0 to 100 method?
> 
I know they worked differently but I might remember it wrong, it might
not have been 0-255 vs 0-100, it might have been that they used the
0-255 range differently.

I've the following section in the "Rating Tag" scanning module code to
make both compatible with the rating range used by the TrackStat plugin
($c is the POPM numeric value):

Code:
--------------------
    
  if($emailText =~ /Windows Media Player/) {
        $ratingNumber = floor($c*100/255);
        $ratingNumber = floor(20+$ratingNumber*80/100);
  }else {
        $ratingNumber = floor($c*100/255);
  }
  
--------------------

As you can see, there are different conversions for WMP and other
applications.

TrackStat uses the following rating range when displaying 5 star
ratings based on the 0-100 value in SqueezeCenter database:
0-9 -> 0
10-29 -> 1
30-49 -> 2
50-69 -> 3
70-89 -> 4
90-100 -> 5

Standard SqueezeCenter always displays the ratings as x/100, it never
displays them as 0-5 or 0-10 stars.

Of course, whenever they decide to implement enhancement #142 they are
also going to have to display them as stars because letting the user
set ratings in a range of 0-100 will not work IMHO, stars is a must if
you allow users to manually set ratings


-- 
erland

Erland Isaksson
'My homepage' (http://erland.isaksson.info) 'My download page'
(http://erland.isaksson.info/download)
(Developer of 'TrackStat, SQLPlayList, DynamicPlayList, Custom Browse,
Custom Scan,  Custom Skip, Multi Library, Title Switcher and Database
Query plugins'
(http://wiki.erland.isaksson.info/index.php/Category:SlimServer))
------------------------------------------------------------------------
erland's Profile: http://forums.slimdevices.com/member.php?userid=3124
View this thread: http://forums.slimdevices.com/showthread.php?t=59929

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

Reply via email to