[Banshee-List] Automatic Rating



I would like to do some work or help with work on an extension regarding this bug: http://bugzilla.gnome.org/show_bug.cgi?id=419844. I really like the algorithm that Amarok uses for this purpose but I'm not sure if it will be implementable in banshee as I'm not sure if the required information is retained or available upon track change. Here is the algorithm from Amarok in ruby:

  if( playcount <= 0 ) # not supposed to be less, but what the hell.
      newscore = ( prevscore + percentage ) / 2
  else
      newscore = ( ( prevscore * playcount ) + percentage ) / ( playcount + 1 )
  end


This is not perfect but it does a nice job. There are other algorithms out there to be played with though that also take into account the users manual star rating.

What I would really like to know is if the devs think that this will be possible with an extension. Are the proper variables available to an extension upon a change of track? Any information would be greatly appreciated.
 Brian



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]