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: foo_playlist_tree (Read 712582 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

foo_playlist_tree

Reply #1425
>> Mods: Now that this plugin is quite stable (and much used), why not change the title of this thread?

foo_playlist_tree

Reply #1426
hello

I am seriously loving this plug-in but I am running into 1 problem.

My attempts at formatting the labels are failing.
I am trying to display the labels in different colours than the normal text.
I am trying @format<$rgb(my colour)> before I display the name of the label, but I just see the HEX colour code for the colour I enter.

I am using v0.9.3 and the latest version of this plugin.
Any help would be appreciated.
Has anybody got this to work?

foo_playlist_tree

Reply #1427
hello

I am seriously loving this plug-in but I am running into 1 problem.

My attempts at formatting the labels are failing.
I am trying to display the labels in different colours than the normal text.
I am trying @format<$rgb(my colour)> before I display the name of the label, but I just see the HEX colour code for the colour I enter.

I am using v0.9.3 and the latest version of this plugin.
Any help would be appreciated.
Has anybody got this to work?


Playlist tree doesnt use the standard $rgb() function for its formatting.  You can use custom colors for nodes, by enabling the "Custom Selection" option in the preferences, and using the playlist tree specific function @rgb<rr,gg,bb> somewhere in the node's label.
There used to be a link to my website here.

foo_playlist_tree

Reply #1428
This may be of interest to some playlist tree users:

I have updated my foo_cwb_hooks component to include a variable called %systemdate% and %systemdatetime%, which will get the current date or date and time.

more information on my foobar2000 page: http://wiki.bowron.us/index.php/Foobar2000#foo_cwb_hooks
There used to be a link to my website here.

foo_playlist_tree

Reply #1429
Very usefull plugin, thx!
but NOT last_played MISSING didn't work 8\ what's wrong?

foo_playlist_tree

Reply #1430
I'm new to this component,so i'm maybe asking a stupid question,but here it is:
I wanted to make a query that sorts the files from the media library by their rating,now rating is not a tag
in my case,but calculated based on other tags,so i craeted a query:

format:
Code: [Select]
$puts(decreaserange,15)
$puts(sysmonth,$num($substr(%systemdate%,6,7),2))
$puts(sysday,$num($substr(%systemdate%,9,10),2))
$puts(sysyear,$num($substr(%systemdate%,1,4),4))
$puts(month,$mul(30,$get(sysmonth)))
$puts(day,$get(sysday))
$puts(year,$mul(365,$get(sysyear)))
$puts(date,$add($get(month),$get(day),$get(year)))
$puts(symbol,$char(9608))
$puts(fmonth,$mul(30,$num($substr(%first_played%,6,7),2)))
$puts(fday,$num($substr(%first_played%,9,10),2))
$puts(fyear,$mul(365,$num($substr(%first_played%,1,4),4)))
$puts(fdate,$add($get(fmonth),$get(fday),$get(fyear)))
$if($stricmp($get(fdate),0),$puts(fdate,$get(date)))
$puts(daterange,$sub($get(date),$get(fdate)))
$puts(fix,$div($get(daterange),$get(decreaserange)))
$if(%play_count%,$puts(rating,%play_count%),$puts(rating,0))
$if($greater(%play_count%,5),$puts(rating,$sub(5,$get(fix))),
$puts(rating,$sub($get(rating),$get(fix))))
$if($greater(-5,$get(rating)),$puts(rating,-5))
$if($greater($get(rating),5),$puts(rating,5))
$get(rating)


That calculates the rating of the tracks,but i don't know how to get it displayed in the decreasing order
(the rating value is between -5 and 5 and it getting mixed up,@default doesn't help much)


Any help appreciated
Favourite artist:CD-R
Favourite album:700MB

foo_playlist_tree

Reply #1431
Did you try to uncheck the "reverse" option?

foo_playlist_tree

Reply #1432
Did you try to uncheck the "reverse" option?

Yes,without any result.My question is:if you calculate a vlue (rating) ,how can you access it in other
playlist tree fields (ex:population order)?
Favourite artist:CD-R
Favourite album:700MB

foo_playlist_tree

Reply #1433

Did you try to uncheck the "reverse" option?

Yes,without any result.My question is:if you calculate a vlue (rating) ,how can you access it in other
playlist tree fields (ex:population order)?


$put and $get variables do not work across different calls to the formatter.  So if you $put a variable in the format, you cannot access it in the population order, without $putting it again.
There used to be a link to my website here.

foo_playlist_tree

Reply #1434
Not sure if this has been mentioned, but I've noticed that my Playlist Tree queries tend to keep track of dead files, even after they've been deleted and are no longer present in the foobar database.  Is this being addressed?

Thanks.

foo_playlist_tree

Reply #1435
Not sure if this has been mentioned, but I've noticed that my Playlist Tree queries tend to keep track of dead files, even after they've been deleted and are no longer present in the foobar database.  Is this being addressed?

Thanks.

i get this often too. even after deleting the file in foobar, then emptying hte recycle bin. sometimes i have to restart foobar, reload the database, restart foobar, refresh the db again, then reloal the trees..

foo_playlist_tree

Reply #1436
[nevermind -- answered my own question]

foo_playlist_tree

Reply #1437
I tried this plugin recently, and run into some problems.

1. I tried to show average rating per album with following query:
Title: by artist
Source: @database
Criteria: NOT artist MISSING
Format: %<artist>%|$if(%tracknumber%,[[%date% - ]%album%' [ '@quote<@format<$avg(%rating%)>>' ]'|],)[[CD %discnumber%|]%tracknumber%. ]%title%

but only get:
Artist|Album [ 0.00 ]|...

There are always 0.00 instead of calculated value.

2. Query to show all other tracks of artist of currently playing track:

Title: Now Playing: @format<$playing('%artist%')$if($playing('%title%'),' ● '$playing('%title%'),Silent)>
Source: @database
Criteria: artist IS @format<$playing('%artist%')>
Format: $if2(%track artist%,%album artist%)$if(%album%,[' ● '%date%' - ']%album%)|[%tracknumber%' - ']$if($meta(album artist),%artist%' ● ')%title%

Problems:
1. after finishing all tracks Title stick to last played track %title% and sub-items stick to tracks of last played track %artist%.
2. if I exit foobar and restart it, then Title become "Now playing: Silent", but sub-items remain unchanged - showing tracks of last played track %artist%.

foo_playlist_tree

Reply #1438
Is it possible to make more than 1 autoplaylist? When I try to make a 2nd one, the "autoplaylist-icon" in my first autoplaylist disappears. Maybe just a dumb question but hopefully someone can help me.

foo_playlist_tree

Reply #1439
Format: %<artist>%|$if(%tracknumber%,[[%date% - ]%album%' [ '@quote<@format<$avg(%rating%)>>' ]'|],)[[CD %discnumber%|]%tracknumber%. ]%title%


Try changing adding quotations marks to the %rating%, so that it looks like:

@quote<@format<$avg('%rating%')>>

Quote
1. after finishing all tracks Title stick to last played track %title% and sub-items stick to tracks of last played track %artist%.
2. if I exit foobar and restart it, then Title become "Now playing: Silent", but sub-items remain unchanged - showing tracks of last played track %artist%.


The now playing automatic refreshes occur only when a new song plays, so when all songs are done playing it will leave whatever was last in there.
There used to be a link to my website here.

foo_playlist_tree

Reply #1440
Quote
Try changing adding quotations marks to the %rating%, so that it looks like:

@quote<@format<$avg('%rating%')>>


Wow! Its working, and much faster refreshing then before.
But I don't fully undestand what meaning in all those inculsions: $avg in @format in @quote. ^(

Quote
The now playing automatic refreshes occur only when a new song plays, so when all songs are done playing it will leave whatever was last in there.


It's seems illogical to me. If trese is no tracks playing $playing must return nothing, IMHO.

foo_playlist_tree

Reply #1441
It's seems illogical to me. If trese is no tracks playing $playing must return nothing, IMHO.


The refresh is triggered only when a new track plays.  If no new track plays, the refresh is not triggered and the tree remains in the previous state.
There used to be a link to my website here.

 

foo_playlist_tree

Reply #1442
You mean that foobar doesn't generate any distinguishing events in case of finishing playback?

And, why, in case of exiting and starting foobar (after playback finished), $playing('%title%') returns nothing, but $playing('%artist%') return, obviously, previuos %artist%?

foo_playlist_tree

Reply #1443
You mean that foobar doesn't generate any distinguishing events in case of finishing playback?

And, why, in case of exiting and starting foobar (after playback finished), $playing('%title%') returns nothing, but $playing('%artist%') return, obviously, previuos %artist%?


I mean, I dont handle them.  If you would like to write your own plugin and handle it differently you are more than welcome.
There used to be a link to my website here.

foo_playlist_tree

Reply #1444
Oh, yes... Write a plug to upgrade another unfinished plug is a really wonderful idea.

Sorry for bothering you...

foo_playlist_tree

Reply #1445
Hey now, seems to be something odd going on with %_itemcount% when used after $parent()

I'm using the 3 default queries (Playlists, Artist, Album) along with a Static folder (Ratings) that contains 5 queries (for %rating% 1 - 5).

I only want to display the %_itemcount% for the 5 %rating%'s queries.

first step was: Preferences > Playlist Tree > Default Folder Format
%_name% '<'%_itemcount%'>'

as expected, this displays the correct counts for each folder/query

next step:
%_name% $if($strcmp($parent('%_displayname%'),"Ratings'),'<'%_itemcount%'>')

this does not work as expected:



for some reason the %_itemcount% for the parent (Ratings folder) rather then the individual queries is displayed?

after some fiddlin' I came up with this:
$puts(ITEMS,%_itemcount%)%_name% $if($strcmp($parent('%_displayname%'),"Ratings'),'<'$get(ITEMS)'>'

this worked:



Seems the index that %_itemcount% uses is changed when $parent() is called?

foo_playlist_tree

Reply #1446
I'm using the 3 default queries (Playlists, Artist, Album) along with a Static folder (Ratings) that contains 5 queries (for %rating% 1 - 5).

I only want to display the %_itemcount% for the 5 %rating%'s queries.


I haven't really processed your whole post yet, but why not just using one query that sorts them into rating rather 5 separate queries?

You could then do some fancy stuff as to the naming of the folder such as using this format:

Code: [Select]
$select(%rating%,1 - bad,2 - bla,3 - ok,4 - good,5 - great '('@format<'%_itemcount%'>')')|%artist%-%title%


and leave your folder display variable set to %_name%

and I would suggest a population sort order such as:

Code: [Select]
$sub(999,%rating%)|%artist%-%title%


to sort it decsending.
There used to be a link to my website here.

foo_playlist_tree

Reply #1447
Hi, thanks for your plug-in, it’s very useful.

But I have one big problem with it. If I activate playlist_tree, my foobar need up to 2 minutes to start. By deactivating the plug-in, foobar need "only" 7 seconds to start.

That I do wrong? I use only the default settings of playlist_tree.

foo_playlist_tree

Reply #1448
Some questions

1. Sorting question. I wanted to sort albums by average rating, in descending order.
Query parameters are following.

Source: @database
Criteria: NOT album MISSING
Format: ' [ '@quote<@format<$avg('%rating%')>>' ] '%album%[' [ '%album artist%[' ● '%date%]' ] ']|[[CD %discnumber%|]%tracknumber%. ][%track artist% - ]%title%

Checkbox "Sort by display name after populating" is checked.
Checkbox "Reverse" is checked.

But albums sorting still ascending.

If I uncheck "Sort by display name after populating" and set Population Order to "$avg('%rating%')" album ordering became random (at least it looks like it).

Is there any way to make it working?

2. Search bar:
- if I turn on "Hide leaves" option in setting it's render search bar useless: there is no reaction to search attempts. I think it would be useful to select а first parent of finded file;
- which file must be selected as a search result? First in all database?

3. This is a from a feature requests list: remove duplicates option for sending to library playlist operations.
If it request would be fullfilled, by what criteria would it search duplicates? Is it possible to use custom Tagz-string?

foo_playlist_tree

Reply #1449
I haven't really processed your whole post yet, but why not just using one query that sorts them into rating rather 5 separate queries?


Ya... kinda where I went first... but then, only the Rating levels that actually returned results would show...
i.e. the pic I'd posted shows 0 items for So So... & Trash - These don't show using this method...

So, anyway, have you processed my whole post as yet?