Step by step guide to use ratings with foobar2000 0.9.5 |
This is NOT a tech support forum.
Tech support questions go to foobar2000 Tech Support forum instead.
See also: Hydrogenaudio Terms of Service.
![]() ![]() |
Step by step guide to use ratings with foobar2000 0.9.5 |
Jul 29 2012, 01:38
Post
#76
|
|
|
Group: Members Posts: 1 Joined: 29-July 12 Member No.: 101848 |
Thanks for this thread, it was helpful.
Anyone know of anyone, any thread using the "Playback Statistics" to control how often a track is selected in RANDOM or SHUFFLE? Maybe something that checks/sets a var based on the rating to have the track selected a number on times before it actual plays it, then once it is played, resets the var to 0. |
|
|
|
Jan 13 2013, 12:05
Post
#77
|
|
|
Group: Members Posts: 5 Joined: 13-January 13 Member No.: 105837 |
Hi,
I am using Foobar v1.2 with Default User Interface under Windows 7 x64. Before that I had previous versions of foobar and rating implementation I found in this topic works like charm but with current version I got problem. Stars are not filled after assigned but I received rating confirmation message. The font is Segoe UI. I have double checked all settings and all are proper as I follow instructions from the first post in this topic. Any tip or clue would be helpful Many thanks |
|
|
|
Jan 13 2013, 12:55
Post
#78
|
|
![]() Group: Members Posts: 1235 Joined: 6-March 04 From: Sweden Member No.: 12509 |
Try $meta(rating) instead when displaying them.
|
|
|
|
Jan 13 2013, 13:27
Post
#79
|
|
|
Group: Members Posts: 5 Joined: 13-January 13 Member No.: 105837 |
like this?
$pad($meta(★,%rating%), 5,✩) doesn't work |
|
|
|
Jan 13 2013, 14:44
Post
#80
|
|
![]() Group: Members Posts: 1235 Joined: 6-March 04 From: Sweden Member No.: 12509 |
No, that is instead of %rating%, the whole thing.
|
|
|
|
Jan 13 2013, 22:32
Post
#81
|
|
|
Group: Members Posts: 5 Joined: 13-January 13 Member No.: 105837 |
$pad($repeat(★,$meta(rating)), 5,✩)
thanks but still no effect |
|
|
|
Jan 15 2013, 12:43
Post
#82
|
|
|
Group: Members Posts: 5 Joined: 13-January 13 Member No.: 105837 |
guys please help me out, I am greenhorn in scripting and I am dying to get the rating back to foobar, can't live without it.
|
|
|
|
Jan 15 2013, 17:42
Post
#83
|
|
![]() Group: Members Posts: 17 Joined: 13-October 12 Member No.: 103827 |
If you use foo_playcount for ratings, then it will allow you to add a column %rating_stars% or %rating_stars_fixed%. By default though, foo_playcount will store ratings in a database as opposed to writing the rating as a tag in the file. This behavior can be changed by setting Preferences->Advanced->Tools->Playback Statistics->Automatically synchronize file tags with statistics.
|
|
|
|
Jan 15 2013, 17:58
Post
#84
|
|
|
Group: Members Posts: 2268 Joined: 19-May 08 Member No.: 53637 |
disko78
as you learn foobar2000 and read threads it is good to keep a couple thoughts in mind. How old is the thread and is it active. This thread was started 3 years ago and directly references an out of date version of foobar2000 and is not very active. As pointed out above, it is probable that this task is easier to accomplish than the steps outlined in this thread. You could also use foo_simplaylist as your playlist viewer and avoid having to even add a custom column with titleformatting. regards |
|
|
|
Jan 15 2013, 23:14
Post
#85
|
|
|
Group: Members Posts: 5 Joined: 13-January 13 Member No.: 105837 |
I got it now,
Apologies for spamming, thanks a lot for your effort |
|
|
|
Feb 22 2013, 08:03
Post
#86
|
|
|
Group: Members Posts: 3 Joined: 22-February 13 Member No.: 106797 |
Just thought I'd throw my hunk of script out there. The code's a little ugly, but it works!
Supports FLAC tags as well! Preview: ![]() CODE $ifequal(%rating%,100,$char(9733)$char(9733)$char(9733)$char(9733)$char(9733), $ifequal(%rating%,80,$char(9733)$char(9733)$char(9733)$char(9733)$char(9734), $ifequal(%rating%,60,$char(9733)$char(9733)$char(9733)$char(9734)$char(9734), $ifequal(%rating%,40,$char(9733)$char(9733)$char(9734)$char(9734)$char(9734), $ifequal(%rating%,20,$char(9733)$char(9734)$char(9734)$char(9734)$char(9734), $ifequal(%rating%,5,$char(9733)$char(9733)$char(9733)$char(9733)$char(9733), $ifequal(%rating%,4,$char(9733)$char(9733)$char(9733)$char(9733)$char(9734), $ifequal(%rating%,3,$char(9733)$char(9733)$char(9733)$char(9734)$char(9734), $ifequal(%rating%,2,$char(9733)$char(9733)$char(9734)$char(9734)$char(9734), $ifequal(%rating%,1,$char(9733)$char(9734)$char(9734)$char(9734)$char(9734), $char(9734)$char(9734)$char(9734)$char(9734)$char(9734))))))))))) |
|
|
|
Feb 22 2013, 23:08
Post
#87
|
|
|
Group: Members Posts: 3 Joined: 22-February 13 Member No.: 106797 |
Seems it didn't like that code anymore...
This post has been edited by db1989: Mar 30 2013, 14:02
Reason for edit: deleting pointless full quote of above post + second repetition of [codebox]
|
|
|
|
Feb 23 2013, 14:35
Post
#88
|
|
|
Group: Members Posts: 328 Joined: 17-April 12 Member No.: 98921 |
Try one of these:
CODE $ifgreater($meta(rating),5,$pad($repeat(★,$div($meta(rating),20)),5,☆),$if($meta(rating),$pad($repeat(★,$meta(rating)),5,☆),$repeat(☆,5))) $ifgreater($meta(rating),5,$pad($repeat(★,$div($meta(rating),20)),5,☆),$ifgreater($meta(rating),0,$pad($repeat(★,$meta(rating)),5,☆),$repeat(☆,5))) Either one should do what your script does. Note that if you have the Playback Statistics component (AKA foo_playcount) installed, %rating% is commandeered by that component and is used to access ratings stored in that component's database. Thus in order to access ratings stored in a file's metadata, $meta(rating) must be used. I don't know if this is the issue you were experiencing with your script, but it's one possibility. This post has been edited by db1989: Mar 30 2013, 14:02
Reason for edit: as above
-------------------- This signature apparently isn't too long.
|
|
|
|
Feb 23 2013, 18:31
Post
#89
|
|
|
Group: Members Posts: 3 Joined: 22-February 13 Member No.: 106797 |
That's probably why my original script broke. foo_playcount must have bugged after I installed another component.
That code looks so professional. I'm glad I didn't spend too long on mine or I'd feel like total crap right now lol This post has been edited by db1989: Mar 30 2013, 14:02
Reason for edit: as above
|
|
|
|
Mar 30 2013, 08:59
Post
#90
|
|
|
Group: Members Posts: 4 Joined: 1-May 12 Member No.: 99374 |
Hi,
I am using Win7 x64, and I have Arial Unicode MS installed with Microsoft Office 2007, and I can select that font in any program - except Foobar. I need that font to display the stars correctly, but how can I actually select that font? I only have the ordinary Arial available for selection, but Arial Unicode MS is missing Any idea? |
|
|
|
Mar 30 2013, 09:15
Post
#91
|
|
![]() Group: Members Posts: 3258 Joined: 27-January 05 From: England Member No.: 19379 |
you don't need arial unicode MS to display stars on windows 7. it should work with most fonts and certainly does if you stick with the default of Segoe UI.
|
|
|
|
Mar 30 2013, 16:19
Post
#92
|
|
|
Group: Members Posts: 4 Joined: 1-May 12 Member No.: 99374 |
you don't need arial unicode MS to display stars on windows 7. it should work with most fonts and certainly does if you stick with the default of Segoe UI. The behaviour on my Win7 x64 is somehow strange: - the characters definitely don't display with the default font, all I get is squares instead. - Arial Unicode MS was installed, but it was "disabled" in my fonts folder, I had to right click the font and enable it (German Translation of Windows is "Einblenden", I have no idea what that context menu entry is named in an english Win7). so Arial Unicode is working now, but how do I get it working with Segoe UI? This is what my Fonts folder looks like: This post has been edited by Jackie78: Mar 30 2013, 16:25 |
|
|
|
Mar 30 2013, 16:37
Post
#93
|
|
![]() Group: Members Posts: 3258 Joined: 27-January 05 From: England Member No.: 19379 |
you shouldn't have to do anything. it should just work. i'm running windows 7 x64 myself and i have stars in my playlist. i haven't touched any font or any other windows system settings.
you're not running google chrome are you? it seems to interfere with special characters in this thread: http://www.hydrogenaudio.org/forums/index....showtopic=99606 other than that, i have no idea how you would troubleshoot this. |
|
|
|
Mar 30 2013, 16:55
Post
#94
|
|
|
Group: Members Posts: 4 Joined: 1-May 12 Member No.: 99374 |
you shouldn't have to do anything. it should just work. i'm running windows 7 x64 myself and i have stars in my playlist. i haven't touched any font or any other windows system settings. you're not running google chrome are you? it seems to interfere with special characters in this thread: http://www.hydrogenaudio.org/forums/index....showtopic=99606 other than that, i have no idea how you would troubleshoot this. Well, maybe another setup interferred? I cannot tell since formerly, I never tried, but what I realized: I can display Unicode Font $char(9733) without problems in MS Office 2007 when I select Segoe UI, but what office does is instead change the font from Segoe UI to "MS Gothic", so there seems to be some font indirection, I don't know exactly, since I am not familiar with how Windows handles fonts at all. When I select MS Gothic in Foobar, the star is displayed, but the rest of the text is in MS Unicode too, which isn't nice. |
|
|
|
Apr 24 2013, 06:34
Post
#95
|
|
|
Group: Members Posts: 38 Joined: 6-May 06 Member No.: 30469 |
There are so many codes and references on other code on this thread.. can anyone please post a step-by-step tutorial on how to make ratings work on clean 1.2.5 with default UI? Thanks.
|
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 19th May 2013 - 02:02 |