Post Reply 
Displaying half-star ratings
16-11-2023, 15:44
Post: #33
RE: Displaying half-star ratings
The averaged album rating would be calculated after tagUpdate processing has happened.

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.

One way to resolve this would be to use the mode (the central value when the tagged values are arranged in sorted order). The values would be sorted with the numeric sort algorithm for strings that MinimServer already uses when sorting lists (so that Volume 9 comes before Volume 10, etc.) This is reasonably simple to implement but might produce surprising results in some cases. 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.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Displaying half-star ratings - simoncn - 16-11-2023 15:44

Forum Jump:


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