HydrogenAudio

Hosted Forums => foobar2000 => 3rd Party Plugins - (fb2k) => Topic started by: dix-hill on 2024-04-15 20:12:56

Title: Playback Statistics Questions
Post by: dix-hill on 2024-04-15 20:12:56

Automatically Synchronize File Tags
Title: Re: Playback Statistics Questions
Post by: dix-hill on 2024-04-15 21:33:24
Also...

Do I have to use Automatically Synchronize File Tags to use Played Count in SQL Tree?

Thanks for any help!
Title: Re: Playback Statistics Questions
Post by: anamorphic on 2024-04-16 15:36:10
Hi there, I'll answer in order...

1. Sure, what were you thinking the tab would look like? You can make a dedicated "Recent" tab using an auto-playlist and view it with EsPlaylist (DUI/CUI, 32-bit only) like I outlined over here (https://www.reddit.com/r/foobar2000/comments/naxw34/comment/gxzai86/?utm_source=share&utm_medium=mweb3x&utm_name=mweb3xcss&utm_term=1&utm_content=share_button). (Since EsPlaylist can lock view to any playlist besides the active one)

2. If you mean clicking stars in the playlist, the playlist viewer has to support a click-able rating column. Not sure the CUI playlist viewer has that feature yet. DUI playlist viewer does as of foobar v2.0. Older stuff like SimPlaylist (https://www.foobar2000.org/components/view/foo_simplaylist) (DUI, 32-bit only) and EsPlaylist also have click-able ratings (to tags). And of course the javascript ones, JSPlaylist and Smooth Playlist (https://jscript-panel.github.io/gallery/smooth-playlist/) with JSP3.

3. Yes, most likely it overwrites tags, since they have to be updated with every play. However you should be able to import tags to database first, on the right-click tracks > Playback Statistics menu. Then your tag ratings would also be in the database and get written back to tags. (Test it first on one track to be safe)

4. It only supports ratings of 1-5.

5. No, it writes all statistics fields.

6. No idea for sure, but statistics fields are available to use everwhere else, so I guess SQL can read them too.
Title: Re: Playback Statistics Questions
Post by: dix-hill on 2024-04-16 20:59:33
Thanks for the detailed reply!

3. Yes, most likely it overwrites tags, since they have to be updated with every play. However you should be able to import tags to database first, on the right-click tracks > Playback Statistics menu. Then your tag ratings would also be in the database and get written back to tags. (Test it first on one track to be safe)

Apologies, I wasn't clear.  I meant to ask if this will replace all of my existing ratings with nothing when I select Automatically Synchronize File Tags.  Meaning, will all of the ratings I already added be replaced with an empty value?

Title: Re: Playback Statistics Questions
Post by: anamorphic on 2024-04-17 03:19:25
Yes I think it would (when the track is played) if the database has no rating set. Unless you import tags to database first like I said...

It might be useful to add a couple playlist columns - one for %rating% (database) and one for $meta(rating) (tags) - so you can compare.

After you right-click a track > Playback Statistics > 'Import statistics from file tags', and once you can see the two columns match (so database and tags have the same rating), and once you have done that for every track in the library, then it would be safe to enable Synchronize Tags option. (It only syncs when tracks are played, not immediately)

Side note: To display stars for ratings, use a display script such as %rating_stars_fixed% (database) and $pad($repeat(★,$meta(rating)),5,☆) (tags)