Rating values for popularimeter tag

Issue description:

This is more a question than a bug report.

What should be the valid rating values in a POPM tag?

This is what I’m using (can’t remember how I came up with it ha):
0 star: 0
1 star: 51 (this shows up as 1.5 in the full player)
2 star: 102 (this shows up as 2.5 in the full player)
3 star: 153
4 star: 204
5 star: 255

So 1 and 2 stars are displaying as 1.5 and 2.5 but I suppose Symfonium uses a different scale to determine the proper star rating; I’ve seen different versions out there so I’m not really sure which one I should use.

I use the Musicbee values:

1 point = 1 star
64 points = 2 stars
128 points = 3 stars
196 points = 4 stars
255 points = 5 stars

This assignment seems to be common in other players as well.

POPM have 2 values an email and a value and the calculation depends on the email value.

For the majority of the cases, I choose to follow Kodi that did research on this and is based on MediaMonkey decisions :slight_smile:

    if (popm == 0) return 0;
    if (popm == 1) return 2;
    if (popm < 23) return 1;
    if (popm < 32) return 2;
    if (popm < 64) return 3;
    if (popm < 96) return 4;
    if (popm < 128) return 5;
    if (popm < 160) return 6;
    if (popm < 196) return 7;
    if (popm < 224) return 8;
    if (popm < 255) return 9;
    else return 10;

There’s a special case for Kodi that is value / 51.

If there’s other special well documented case with a known email value I can add support for it.

1 Like