Author Topic: Rating Type Custom Tag Bug  (Read 711 times)

tjinc

  • Jr. Member
  • **
  • Posts: 112
MusicBee version 3.5.8509 P

When displaying a custom tag of type 'rating' in the main panel all seems to work as expected, i.e. you can click on the stars to set the rating. However this field does not then work when used in criteria in auto playlists or playlist mixers.

It appears that clicking on the stars in the main panel sets tag values of 1 to 5 (1 for one star.....5 for five stars) but, when using this field as criteria in an auto playlist, it filters on tag values of 20 to 100 (20 for 1 star.....100 for 5 stars).

Note that if the values of 20 to 100 are manually entered via the Tag Editor window then the correct number of stars are displayed in the main panel and then any auto playlist using this field as a criterion contains the expected results.

hiccup

  • Sr. Member
  • ****
  • Posts: 7299
Confirmed that it doesn't seem to work properly for auto-playlists.

frankz

  • Sr. Member
  • ****
  • Posts: 3489
I use stars in my auto-playlists all the time and extensively and it appears to work fine.  

If I click three stars in the interface to rate a song, tag inspector shows a 60 rating.  

The one issue is in auto-playlists is that in some instances it shows the graphical stars and in some instances it shows the numerical ratings.  This appears to be a visual problem rather than an operational one, because it seems to work correctly either way, and if you look in the *.xautopf file for the playlist the proper numerical values are listed there no matter how it's displayed in the GUI.

It may be relevant that I store ratings in my files, not in the database.  OP doesn't mention how the ratings are being stored.
Last Edit: May 19, 2023, 08:39:28 PM by frankz
A smile is happiness you'll find right under your nose.

hiccup

  • Sr. Member
  • ****
  • Posts: 7299
I use stars in my auto-playlists all the time and extensively and it appears to work fine.  
Am I wrong in assuming you overlooked this part?:

When displaying a custom tag of type 'rating'…
And also the title of the post ;-)
('custom' is the keyword here)

frankz

  • Sr. Member
  • ****
  • Posts: 3489
I use stars in my auto-playlists all the time and extensively and it appears to work fine. 
Am I wrong in assuming you overlooked this part?:

When displaying a custom tag of type 'rating'…
And also the title of the post ;-)
('custom' is the keyword here)
Your assumption is not wrong.  Carry on.
A smile is happiness you'll find right under your nose.


Steven

  • Administrator
  • Sr. Member
  • *****
  • Posts: 34037
I am not sure this is a bug. How are you entering the custom tag value? If you are typing a value in the tag editor then you need to realise MB uses a 0-100 scale for ratings
So 4 stars will be represented as 80

hiccup

  • Sr. Member
  • ****
  • Posts: 7299
Only speaking for myself on my brief testing this:

I set the rating in the main panel, track details:


And the auto-playlist editor asks for a star value, not a numeric value:
Last Edit: May 20, 2023, 07:48:27 AM by hiccup

Steven

  • Administrator
  • Sr. Member
  • *****
  • Posts: 34037
ok, so i can reproduce the issue when selecting a rating from the main panel

tjinc

  • Jr. Member
  • **
  • Posts: 112
Yes, as Hiccup detailed and you have reproduced, clicking on the rating stars in the main panel is, or shows, the issue.
If you check the custom tag values after doing so you can see that they are set to 0 to 5 and not 0 to 100.

Steven

  • Administrator
  • Sr. Member
  • *****
  • Posts: 34037
This should fix the issue:
https://getmusicbee.com/patches/MusicBee35_Patched.zip
unzip and replace the existing musicbee application files

tjinc

  • Jr. Member
  • **
  • Posts: 112