Post Reply 
Displaying half-star ratings
16-11-2023, 21:04 (This post was last modified: 16-11-2023 21:05 by DanielB.)
Post: #34
RE: Displaying half-star ratings
(16-11-2023 15:44)simoncn Wrote:  While looking at the code to confirm this, I noticed some difficulties with computing a weighted average. The most serious issue is that the user can put any string into a RATING tag for a FLAC file, not necessarily a numeric value.
Obviously I don't know all the issues you've found, so some of this may not be applicable/possible.

Before asking bubbleupnp to add ratings I did a little research so I'm basing this on that, and I'm assuming that you want to produce the average using the incoming scale (rather than 1-5).

The following rules apply to all tracks of an album.
- If any rating is outside of 1-100 then don't calculate a rating at all.
- If all tracks are between 1-5 then output the rounded average.
- otherwise average and round to 20,40,60,80,100 (this assumes you don't want to use half-points which you haven't for MP3's).

(16-11-2023 15:44)simoncn Wrote:  The other option is to continue with the current implementation of using the first value found, which is simpler to implement and to explain and understand.
I just don't think the first rating is of any value though, it's akin to displaying the maximum value of the album (assuming that good songs are front loaded).

The mode is an improvement but that assumes you use an evenly distributed rating, and I really don't like using 3/it's ok, so an album for me would probably be either 2 or 4.

I'm sorry if I'm coming across as being critical, I don't mean to be, but for me if it can't be calculated properly then I just wouldn't bother at all. I'm not aware of any control points that make use of it so it's not a loss.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Displaying half-star ratings - DanielB - 16-11-2023 21:04

Forum Jump:


User(s) browsing this thread: 1 Guest(s)