Help - Search - Members - Calendar
Full Version: foo_playlist_tree
Hydrogenaudio Forums > Hosted Forums > foobar2000 > 3rd Party Plugins - (fb2k)
Pages: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37
cwbowron
QUOTE(Launch @ Jul 21 2006, 19:50) *

QUOTE(lav-chan @ May 19 2006, 17:58) *

In the 0.9 version? That doesn't work for me. It asks for a 'pts' file, and if i change it to 'all files' and force it to open a col file, nothing happens. It just sits there.

I have this same issue. Loading .col files adds nothing to Playlist Tree, and I've tried everything I can think of to get this working... but no luck. I am using foobar2000 v0.9.2 with the latest ColumnsUI and Playlist Tree, but perhaps it's something right under my nose that I'm forgetting here? huh.gif


playlist 2.x does not read files created from prior versions of playlist tree (it now uses the format pts rather than the col files).
pstrg
pstrg's post #1395 above signaled that there's something wrong with the way Playlist Tree sorts.
That's not important for English names and titles (English is the only language with Roman characters that uses no accents) but for any other language it's indeed a problem.
Since foobar2000 is fully Unicode aware I'd guess that the glitch may not be too difficult to correct.

Sorry if I'm bumping, but I think it's relevant...

cwbowron
QUOTE(pstrg @ Jul 21 2006, 20:54) *

pstrg's post #1395 above signaled that there's something wrong with the way Playlist Tree sorts.
That's not important for English names and titles (English is the only language with Roman characters that uses no accents) but for any other language it's indeed a problem.
Since foobar2000 is fully Unicode aware I'd guess that the glitch may not be too difficult to correct.

Sorry if I'm bumping, but I think it's relevant...


I already added to the list of bugs and I will fix it when I have some time to work on playlist tree.
year98
I used playlist_tree in foobar 0.83 with usefulness.

But recently I changed into 0.9x, I found now-playing query doesn't work with my config....

Here is my query code used.

Label : @playing<$upper([%artist%][ :. %album%])>
Query : artist IS @playing<%artist%> OR album artist IS @playing<%artist%>

what changed in 0.9 version??? Isn't above code available in 0.9???

I'll wait a reply...

Sorry for my poor English. Thanks...^^
cwbowron
QUOTE(year98 @ Jul 23 2006, 13:21) *

But recently I changed into 0.9x, I found now-playing query doesn't work with my config....


http://wiki.bowron.us/index.php/Example_Queries#Now_Playing
year98
thanks... I had a some mistakes...^^
fugu
Hi,
I'm unsure whether my problem has its origin in foo_playlist_tree, anyways here we go:
I've been using foo_playlist_tree v2.2b2 to show me my playback history using this code (in the format field):

CODE
$substr(%last_played%,9,10)'.'$substr(%last_played%,6,7)'.'$substr(%last_played%,1,4) '(@format<%_foldercount%>)'|%artist% - %title% '('$substr(%last_played%,12,16)')'


This has been working very well until I switched to the newest beta version of foobar and the official playback statistics plugin (foo_playcount v 1.2) instead of the unofficial one.
So the new playcount plugin writes a tag called last_played_timestamp instead of the well known last_played tag. According to a post of foosion this tag contains the same information in "Win32 FILETIME" format.
I've been very confused about this until I found out that I still can use %last_played% (although there is only a last_played_timestamp) to get the date in the old format (2006-07-24 12:58:14 instead of 127982122941718750).
This works very well in foo_ui_columns and foo_uie_trackinfo. Unfortunately this doesn't seem to work in foo_playlist_tree. Did I miss something? huh.gif

Anyways as I am already posting on this forum, I would like to thank all the developers and the community for making foobar what it is. cool.gif

Cheers

//edit

OK I got it working now.
klez
Hi there. Wonderful Plugin!

My Question: Is it possible to "rebuild" the function "by directory structure" from foo_uie_albumlist ?
I tried it with %directoryname% in the Format field, but it goes up 1 level only :/
cwbowron
QUOTE(klez @ Jul 24 2006, 15:54) *

Hi there. Wonderful Plugin!

My Question: Is it possible to "rebuild" the function "by directory structure" from foo_uie_albumlist ?
I tried it with %directoryname% in the Format field, but it goes up 1 level only :/


Not exactly, but you can some close.

http://wiki.bowron.us/index.php/Example_Queries#By_Directory
klez
Thank you very much! This is truely a killer Plugin. Now i can deinstall autoplaylist, albumlist and explorer tree smile.gif
gob
i have a few features requests that may be pretty easy to add.
could there be an option to disable drag and drop within the playlist tree?
in other parts of foobar, when you use the right mouse button to drag files outside foobar, it works in other applications that support drag and drop like winrar, burrrn, nero, etc. can this behaviour be replicated with the tree?
45miles
I'm doing this Query: (just as example)

Label:
CODE
LP - 5000 - @format<%_itemcount%>

Source:
CODE
NOT play_counter MISSING

Format:
CODE
%play_counter%|%title% - %artist%



What i want is something like that as Format:
Format:
CODE
%play_counter% - @format<%_itemcount%>|%title% - %artist%


But this gives me only folders like
? - 1
? - 2

Can't the items be counted for the subfolders?
It's the same with @format<%_play_length%> which works also in the "Label" but not in "Format"


Greets
Rainer
cwbowron
QUOTE(45miles @ Jul 25 2006, 12:47) *

CODE
%play_counter% - @format<%_itemcount%>|%title% - %artist%



You need to quote the @format<> so that it doesnt get evaluated until it is all populated. Something along the lines of the following:

CODE
%play_counter% - @quote<@format<%_itemcount%>>|%title% - %artist%
45miles
QUOTE(cwbowron @ Jul 25 2006, 19:25) *

You need to quote the @format<> so that it doesnt get evaluated until it is all populated. Something along the lines of the following:

CODE
%play_counter% - @quote<@format<%_itemcount%>>|%title% - %artist%



Ahh, thanks a lot. Works fine now.
I love this plugin.
but there is still one qeustion unanswered about it.
In the version for 0.8.3 i could do a Query using the system_date. This seems liek not working anymore. Any chance to get this feature back?

Rainer
JDoe
hello, in first place, let me thank you for nice plug-in.smile.gif i would like to ask, how do you folks handle various artists albums? could you pls show me some codes? since i am really noob i have no idea where to start. and secondly, i had been happy user of iStormys config, does it exists for actual version of ptree as well?
thank you
gob
QUOTE(JDoe @ Aug 3 2006, 16:29) *

hello, in first place, let me thank you for nice plug-in.smile.gif i would like to ask, how do you folks handle various artists albums? could you pls show me some codes? since i am really noob i have no idea where to start. and secondly, i had been happy user of iStormys config, does it exists for actual version of ptree as well?
thank you



i personally tag all my various artist albums with a VARIOUS tag. this way, when making the format for a query i use $if(%various%,do_this,otherwise_do_this)

some people use an albumartist tag. but since i already have a tag called ARTIST, and a tag called ALBUM, this info would just redundant and create more work than is otherwise needed. that and a tag called albumartist really does not describe the exact nature of what its purpose is to begin with.
q-stankovic
QUOTE(gob @ Aug 3 2006, 23:55) *


i personally tag all my various artist albums with a VARIOUS tag. this way, when making the format for a query i use $if(%various%,do_this,otherwise_do_this)

some people use an albumartist tag. but since i already have a tag called ARTIST, and a tag called ALBUM, this info would just redundant and create more work than is otherwise needed. that and a tag called albumartist really does not describe the exact nature of what its purpose is to begin with.


I would highly recommend the albumartist tag:

1. Often enough i have various artists albums that have an global artist. Example: Mix albums where Album Artist is "Dj Bla Bla".

2. The field remapping since foobar 0.9

3. You have no more work than with a varioustag
JDoe
QUOTE(q-stankovic @ Aug 4 2006, 05:36) *



I would highly recommend the albumartist tag:

1. Often enough i have various artists albums that have an global artist. Example: Mix albums where Album Artist is "Dj Bla Bla".

2. The field remapping since foobar 0.9

3. You have no more work than with a varioustag



thank you for help, but pls what is this "field remapping" feature?
Mishail
QUOTE
thank you for help, but pls what is this "field remapping" feature?

http://tagz.brother-john.net/tagz_intro.html#fieldremap
Sphix
The latest version of playlist_tree crashes with foobar2k 0.9.3

IPB Image
cwbowron
QUOTE(Sphix @ Aug 5 2006, 10:21) *

The latest version of playlist_tree crashes with foobar2k 0.9.3

IPB Image


I upgraded this morning, and did not crash or have handle leaks. Were you crashing or did you just having handle leaks when you exited?

Does it happen everytime or is there some other pattern to it that you can discern?

Thanks
unabatedshagie
Does the playlist tree save the querys created automatically?

I have noticed a few times I have started foobar and all my queries have vanished.
cwbowron
QUOTE(unabatedshagie @ Aug 7 2006, 10:33) *

Does the playlist tree save the querys created automatically?

I have noticed a few times I have started foobar and all my queries have vanished.


The latest version should save it autmatically.. what version are you running?

The auto save feature was added in 2.2beta0.
zoddic
Great plugin!

I have one question tho.

I use the "sort by artist" - view and I like it alot. But, when i double click a folder, lets say Bruce Springsteen, i want my Columns playlist to order the songs by album, not by artist. The reason for this is that my whole playlist looks like shiet when i order by artist. Is this possible?

Thx /zoddic the foo-noob biggrin.gif

unabatedshagie
QUOTE(cwbowron @ Aug 7 2006, 15:48) *

QUOTE(unabatedshagie @ Aug 7 2006, 10:33) *

Does the playlist tree save the querys created automatically?

I have noticed a few times I have started foobar and all my queries have vanished.


The latest version should save it autmatically.. what version are you running?

The auto save feature was added in 2.2beta0.
Weird, like I said I have only had it happen to me a couple of times. I start up foobar and all my querys are gone.

I am using the latest version.
pepoluan
>> Mods: Now that this plugin is quite stable (and much used), why not change the title of this thread?
f0odstamp
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?
cwbowron
QUOTE(f0odstamp @ Aug 11 2006, 11:40) *

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.
cwbowron
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
Dr.Death
Very usefull plugin, thx!
but NOT last_played MISSING didn't work 8\ what's wrong?
Russell777
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

$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)

IPB Image
Any help appreciated
kockroach
Did you try to uncheck the "reverse" option?
Russell777
QUOTE(kockroach @ Aug 18 2006, 16:09) *

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)?
cwbowron
QUOTE(Russell777 @ Aug 18 2006, 10:28) *

QUOTE(kockroach @ Aug 18 2006, 16:09) *

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.
topdownjimmy
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.
gob
QUOTE(topdownjimmy @ Aug 19 2006, 13:47) *

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..
hiscores
[nevermind -- answered my own question]
Hedin
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. sad.gif

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%.
zoddic
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.
cwbowron
QUOTE(Hedin @ Aug 25 2006, 03:38) *

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.
Hedin
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. smile.gif
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.
cwbowron
QUOTE(Hedin @ Aug 25 2006, 08:48) *

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.
Hedin
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%?
cwbowron
QUOTE(Hedin @ Aug 25 2006, 09:19) *

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.
Hedin
Oh, yes... Write a plug to upgrade another unfinished plug is a really wonderful idea. sad.gif

Sorry for bothering you... sad.gif
Cornie
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:

IPB Image

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:

IPB Image

Seems the index that %_itemcount% uses is changed when $parent() is called?
cwbowron
QUOTE(Cornie @ Aug 25 2006, 13:45) *

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(%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
$sub(999,%rating%)|%artist%-%title%


to sort it decsending.
Warchief
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.
Hedin
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. sad.gif

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?
Cornie
QUOTE(cwbowron @ Aug 25 2006, 10:55) *


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?
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.