After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 468639 - Autorating
Autorating
Status: RESOLVED DUPLICATE of bug 419844
Product: banshee
Classification: Other
Component: Other Extensions
Legacy Branch
Other Linux
: Normal enhancement
: 2.x
Assigned To: Banshee Maintainers
Banshee Maintainers
Depends on:
Blocks:
 
 
Reported: 2007-08-20 19:49 UTC by Manuel
Modified: 2008-05-22 22:07 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Manuel 2007-08-20 19:49:20 UTC
Is possible add autorating feature ?
Comment 1 Andrew Conkling 2007-08-22 00:38:01 UTC
I'm not sure I like this idea (not that it means much), but in the interest of discussion, how would you like it to work? Based on the play count or something?
Comment 2 Manuel 2007-08-22 09:19:25 UTC
yes yes, based on the play count.
There is a plugin for quodlibet that can do that:

# Copyright 2005 Joe Wreschnig
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation
#
# $Id$

from plugins.events import EventPlugin

class AutoRating(EventPlugin):
    PLUGIN_ID = "Automatic Rating"
    PLUGIN_NAME = _("Automatic Rating")
    PLUGIN_VERSION = "0.22"
    PLUGIN_DESC = ("Rate songs automatically when they are played or "
                   "skipped. This uses the 'accelerated' algorithm from "
                   "vux by Brian Nelson.")

    def plugin_on_song_ended(self, song, skipped):
        if song is not None:
            rating = song["~#rating"]
            invrating = 1.0 - rating
            delta = min(rating, invrating) / 2.0
            if skipped: rating -= delta
            else: rating += delta
            song["~#rating"] = rating

It's simple and good :)
Comment 3 Josiah Ritchie - flickerfly 2007-08-23 03:27:45 UTC
Please specify the latest version of banshee you have been able to test this against or let us know that this is no longer a problem. Thank you for helping us keep track of your bug.
Comment 4 Andrew Conkling 2007-08-23 12:24:30 UTC
(In reply to comment #3)
> Please specify the latest version of banshee you have been able to test this
> against or let us know that this is no longer a problem. Thank you for helping
> us keep track of your bug.

Either 0.13.1 or SVN trunk would do.
Comment 5 Gabriel Burt 2008-05-22 22:07:05 UTC
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find.


*** This bug has been marked as a duplicate of 419844 ***