Convert RATING tag in characters and copy

Hi! I need convert (via Actions) the data of field RATING into a character and write this into the field LABEL.
I rating my music whit AIMP (my fav player) but I realize that AIMP write the field RATING from 0 to 5 but FB2K read that field different if is a MP3 file or a FLAC file (maybe other soft too).
MP3: 0, 1, 2, 3, 4, 5
FLAC: 0, 20, 40, 60, 80, 100
So, how I do to an "Action" (or script) make this:
FIELD RATING | FIELD LABEL
5 or 100.........................●●●●●
4 or 80.............................●●●●
3 or 60...............................●●●
2 or 40.................................●●
1 or 20...................................●

I hope you understand my question, my English is very bad.
Thanks in advance.

Create an action of the type "Format value" for LABEL (as this is a user-defined field, you probably have to type it in)
for the values 1 to 5 use
format string: $repeat(●,%rating%)

For the values 20 to 100 use
Format string: $replace(%rating%,20,●,40,●●,60,●●●,80,●●●●,100,●●●●●)

As you need 2 of these, I would take care first to get unified values in RATING.
Also, I wonder if RATING is the correct name or whether this should not be POPULARIMETER. As that field has a specified format, It would be interesting to see the real values.

1 Like

Thanks a lot ohrenkino! I'll will try with tag field POPULARIMETER to see what's what's happens.
Thanks again!