Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Questions about rating a song (Read 934 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Questions about rating a song

Q1. I want to rate files via a keyboard shortcut and all my googling seem to involve installing a third party component like Playback Statistics. Is there a way to do it natively?

Q2. Even when I do rate a file via PS, the rating is not saved within the file itself. I checked Mp3tag's external tags to confirm. How do I make the rating be embedded to the file?

Q3. How do I make the PS rating a part of the standard field? Rating=RATING doesn't work.

Re: Questions about rating a song

Reply #1
Hi there,

A1. Not without a component.

A2. Quick Tagger.

A3. 'Rating=RATING' will work for tag ratings only. PS ratings are database.

Re: Questions about rating a song

Reply #2
A3. 'Rating=RATING' will work for tag ratings only. PS ratings are database.

Thank you for the answers.

Q1. What does "PS ratings are database" mean?

Q2. Since natively the data seems to not be stored onto the file and people use foobar natively, does foobar somehow retain information of ratings? What happens if I migrate to another PC and load the same files? How will foobar on a new PC know that on a different PC this file was rated?

Re: Questions about rating a song

Reply #3
Q1. Written to a database, not to files. They will never be written to files (unless you manually do so, using the contextual menu for selected tracks).

Q2. Answered at Q1. If you simply update, database will be ported to new version. If you create 4 portable installations on the same PC, you can simply import the database on every installation. It will work fine in any case.

You will need to export the database at PC 1 and import it at PC 2, and as long as the tracks match the file pinning scheme, ratings will work the same. (this is usually true when you use the same audio files -with same tags- in all PCs)
https://wiki.hydrogenaud.io/index.php?title=Foobar2000:Components/Playback_Statistics_v3.x_(foo_playcount)#New_playback_statistics_data_pinning_scheme_introduced_in_version_3.0

Re: Questions about rating a song

Reply #4
Q1. Written to a database, not to files. They will never be written to files (unless you manually do so, using the contextual menu for selected tracks).

Q2. Answered at Q1. If you simply update, database will be ported to new version. If you create 4 portable installations on the same PC, you can simply import the database on every installation. It will work fine in any case.

You will need to export the database at PC 1 and import it at PC 2, and as long as the tracks match the file pinning scheme, ratings will work the same. (this is usually true when you use the same audio files -with same tags- in all PCs)
https://wiki.hydrogenaud.io/index.php?title=Foobar2000:Components/Playback_Statistics_v3.x_(foo_playcount)#New_playback_statistics_data_pinning_scheme_introduced_in_version_3.0

So my music files are the same but the drives can be different like on my desktop it is G:\Songs\<Singer> but on my laptop it is C:\OneDrive\Songs\<Artist> - would foobar be able to know that the files are the same?

Re: Questions about rating a song

Reply #5
Q1. They will never be written to files (unless you manually do so, using the contextual menu for selected tracks).
There is an option for that in Preferences: Advanced (unless I misunderstood what it actually does):


What happens if I migrate to another PC and load the same files?
As shown on the wiki article linked above, foobar('s foo_playcount component) will tell files apart by the following combination:
Code: [Select]
artist + album + disc number + track number + track title
If these match, the corresponding statistics will be loaded from the foo_playcount database (regardless if your new files are FLAC instead of MP3, or are located elsewhere from their original location, for example).


Re: Questions about rating a song

Reply #6
If these match, the corresponding statistics will be loaded from the foo_playcount database (regardless if your new files are FLAC instead of MP3, or are located elsewhere from their original location, for example).

I did see that. That's great. Thank you, Daeron.

Re: Questions about rating a song

Reply #7
I've decided to embed ratings into the files as tags for a file can change and I don't want to lose my ratings as a result.

Q1. How do I add half a star? I've been scrolling through Google results and just can't find a half a star character or how to add it.
Q2. How do I rate songs from the playlist view itself that does not involve changing my entire UI (simplaylist)?

Re: Questions about rating a song

Reply #8
A1. Half star is not really a tag standard, so I doubt you'll find much support for that.

A2. SimPlaylist already has two clickable built-in columns - 'Rating' and 'Rating (DB)' - the first one should write to tags, the second to PS database.

Re: Questions about rating a song

Reply #9
A1. Half star is not really a tag standard, so I doubt you'll find much support for that.

A2. SimPlaylist already has two clickable built-in columns - 'Rating' and 'Rating (DB)' - the first one should write to tags, the second to PS database.

1. I don't need it to be a half star actually. It can even be the fraction 1/2.

2. Yeah but using simplaylist involves completely changing how foobar looks whereas I prefer the simple playlist view.

Re: Questions about rating a song

Reply #10
Oh, I thought from the way you worded it, that you were using SimPlaylist. Well, fb v2 'Playlist View' has a clickable rating column last I recall (1-5 stars), but not sure if it writes to tags (?) - if not though you could request that for when it eventually releases. (Sometime this decade  :D )

Besides that there is no way to make a clickable column with standard 'Playlist View'. You can add a column that displays 1-10 stars or half stars or whatever, and tag files that way with Quick Tagger button / shortcut, sure, but I was saying the tags would be non- standard, other players would not read them correctly.

A half star code would be a little complicated to figure out right now... (maybe someone can)

Easy way would be to tag a number 1-10 (show 1-10 stars) with a simple column like -

Code: [Select]
$pad($repeat(★,$meta(rating)),10,✩)

Re: Questions about rating a song

Reply #11
Besides that there is no way to make a clickable column with standard 'Playlist View'. You can add a column that displays 1-10 stars or half stars or whatever, and tag files that way with Quick Tagger button / shortcut, sure, but I was saying the tags would be non- standard, other players would not read them correctly.

Why do you say it's non-standard; is %rating% not the Rating field everywhere? I recently just updated tags and was a good thing I embedded the tags instead of using PS or the rating would've been lost.

Anyway I don't really like the idea of using a 10 base system so for now I am just using numbers instead of stars.

 

Re: Questions about rating a song

Reply #12
Yes the RATING field is standard, I'm talking about the value. To show "half stars" you'd have to tag it in some way... either 1-10, or I vaguely recall 10-100 being used for OGG / Vorbis tags (?) - maybe someone else knows more.

(Then you can extrapolate that to display 3.5 stars or whatever)