Re: [Banshee-List] Automatic Rating
- From: "Brandon Perry" <bperry volatile gmail com>
- To: banshee-list gnome org
- Subject: Re: [Banshee-List] Automatic Rating
- Date: Fri, 3 Oct 2008 14:08:39 -0500
I like the idea of this. I would like to see what percentage ( prevscore + percentage ) is, but I believe the playcount is kept in the sqlite database.
On Fri, Oct 3, 2008 at 2:02 PM, Brian Lucas
<bcl1713 gmail com> wrote:
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
_______________________________________________
Banshee-list mailing list
Banshee-list gnome org
http://mail.gnome.org/mailman/listinfo/banshee-list
--
http://www.volatileminds.net
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]