Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tagging: follow the Free Media Player Specification #45

Open
Seirdy opened this issue Mar 24, 2020 · 5 comments
Open

Tagging: follow the Free Media Player Specification #45

Seirdy opened this issue Mar 24, 2020 · 5 comments

Comments

@Seirdy
Copy link
Contributor

Seirdy commented Mar 24, 2020

Players such as Clementine, Yarock, XMMS2, and VLC parse/write rating tags by looking for the "Fmps Rating" tag in accordance with the XDG FMPS specification; however, clerk_rating_client uses the "Rating" tag. Using the "Fmps Rating" tag would improve compatibility with other players.

Cantata, for instance, writes MPD rating stickers to the "Fmps Rating" tag.

@Tonus1
Copy link

Tonus1 commented Mar 26, 2020

If I knew that specification when I did my script (here) I would have payed attention...

Do you have an idea on how to do that @Seirdy ?

@Seirdy
Copy link
Contributor Author

Seirdy commented Mar 26, 2020

@Tonus1 you'd just have to rename the tag from "Rating" to "Fmps Rating".

@Tonus1
Copy link

Tonus1 commented Mar 26, 2020

@Seirdy Thanks, in my todolist !

@Seirdy
Copy link
Contributor Author

Seirdy commented Mar 26, 2020

@Tonus1 Full info is in Section 2.2 of the specification. Ratings should be a float value between 0.0 and 1.0, inclusive. You can just divide the standard 0-10 ratings by 10 and write to the FMPS_RATING tag.

For instance, here's the output of of metaflac --list --block-type=VORBIS_COMMENT for one of my tracks that I rated a 9/10 in the MPD sticker database (using this alias) after using Cantata's "Write Ratings To File" feature:

METADATA block #3
  type: 4 (VORBIS_COMMENT)
  is last: false
  length: 257
  vendor string: reference libFLAC 1.2.1 20070917
  comments: 9
    comment[0]: ALBUM=Spilling Over Every Side
    comment[1]: ARTIST=Pretty Lights
    comment[2]: DATE=2010
    comment[3]: FMPS_PLAYCOUNT=1
    comment[4]: FMPS_RATING=0.90
    comment[5]: FMPS_RATING_AMAROK_SCORE=0.5
    comment[6]: GENRE=Trip-Hop/Dubstep
    comment[7]: TITLE=High School Art Class
    comment[8]: TRACKNUMBER=1

@Tonus1
Copy link

Tonus1 commented Oct 25, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants