question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

RATING Tag Issues

See original GitHub issue

Hello, some notes…

I think in the typings, the field ‘rating’ should be an array like: image

Next strange thing is, that I have a mp3 file with a rating of 3. If I read the file with music-metadata, the value is like 2.500000341. So i have to do a const rating = Math.round(oldAudioData.metadata.common.rating[0].rating)

Thanks, and best regards!

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
Borewitcommented, Jul 3, 2018

Hi George,

The track you provided has a POPM field set with a raw value of 128. Where 0 is not rated, 1 worst and 255 is the best rating. So the score is (128 - 1) / 254 ≈ 0.504.

The rating in Mp3Tag is defined like this:

Track rating from 1 = Bad to 5 = Very good like Windows Media Player does it. You can also enter stars * for rating the track.

That is range of 4 (because 0 is stars is not included). Number of stars is: 1 + 0.504 * 4 ≈ 1 + 2 ≈ 3 stars.

I guess should correct two things

  • Add the -1 in (128 - 1) / 254 ≈ 0.504 and should be divided by 254 to make the max score inclusive.
  • Change the definition of the [0…5] range, because this is very confusing. Maybe [0…1] to be clearly different then the [1…5] star rating.
0reactions
Borewitcommented, Jul 5, 2018

Implemented / fixed in v2.3.0

Read more comments on GitHub >

github_iconTop Results From Across the Web

Moody's downgrades TAG rating to Ba1, stable outlook
Moody's has withdrawn TAG's long term issuer rating of Baa3 following its downgrade to Ba1, as per the rating agency's practice for corporates ......
Read more >
Fix tag and list issues for dynamic remarketing - Google Help
In the new Google Ads experience, many potential issues with remarketing, including those for your tags, event snippets, and lists, are shown as...
Read more >
W3C TAG Issues List
The issues list actually used by the TAG is its Tracker Page . ... In general, the TAG does not expect to review...
Read more >
Moody's downgrades TAG rating to Ba1, stable outlook
TAG operates in a weaker operating environment with rising interest rates, reduced access to debt and equity capital markets, and concerns over ...
Read more >
Potential Tag Rating Issue - MusicBee
Now it seems like MusicBee writes that star rating to the "popularimeter" tag. A 2 star rating in MusicBee gets written as: "MusicBee|64|0"...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found