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 713958 times) previous topic - next topic
0 Members and 2 Guests are viewing this topic.

foo_playlist_tree

Reply #1551
Is @sum<> supposed to work in Format?  I can't get it to do anything.

foo_playlist_tree

Reply #1552
How long?
Have you tried leaving it alone for a few minutes? (say 5)
How many tracks have you?

Fifteen minutes and counting, with no hard disk activity whatsoever. I have 3000-ish songs.


 

foo_playlist_tree

Reply #1554
This is what I have now.
Code: [Select]
$if(%genre%,
@icon<2>%genre%|[@icon<2>%style%|]@icon<29>%artist%|['['%date%']'] $if2(@icon<11>%album%,@icon<86><Unknown album>)|[$num(%tracknumber%,2) - ]%title%,
@icon<86>-<Unknown genre>-|$if(%artist%,@icon<29>%artist%|['['%date%']'] $if2(@icon<11>%album%,@icon<86><Unknown album>)|[$num(%tracknumber%,2) - ]%title%,@icon<86>-<Unknown artist>-|$if(%album%,@icon<11>%album%|[$num(%tracknumber%,2) - ]%title%,@icon<86>-<Unknown album>-|[$num(%tracknumber%,2) - ]%title%))
)
What I'm trying to do, is
Code: [Select]
$if(%genre%,
@icon<2>%<genre>%|[@icon<2>%<style>%|]@icon<29>%artist%|['['%date%']'] $if2(@icon<11>%album%,@icon<86><Unknown album>)|[$num(%tracknumber%,2) - ]%title%,
@icon<86>-<Unknown genre>-|$if(%artist%,@icon<29>%artist%|['['%date%']'] $if2(@icon<11>%album%,@icon<86><Unknown album>)|[$num(%tracknumber%,2) - ]%title%,@icon<86>-<Unknown artist>-|$if(%album%,@icon<11>%album%|[$num(%tracknumber%,2) - ]%title%,@icon<86>-<Unknown album>-|[$num(%tracknumber%,2) - ]%title%))
)
The only difference is %<genre>% and %<style>% at the beginning of line 2.

foo_playlist_tree

Reply #1555
The only difference is %<genre>% and %<style>% at the beginning of line 2.


There's some issues with using %<tag%> stuff inside of complex $if statements and such.  If you want to use the %<tag>% consider doing so without nesting it inside of an $if.
There used to be a link to my website here.

foo_playlist_tree

Reply #1556
It doesn't matter if you add "NOT mood MISSING AND" at the beginning or append "AND NOT mood MISSING" at the end. You don't have added this to the bug list in the wiki so far - so let me ask for any news about this. 


I think the issue is that meta_sep(x,y) doesn't return anything when the tag doesn't exist at all.

I think you're best bet is to rework the query into some sort of @format<$if($meta(x),bla bla bla,x MISSING)> type query.


I tried following:

mood IS @format<$if($playing('%mood%'),$playing('$meta_sep(mood, AND mood IS )'),qwert)> AND "$meta_num(mood)" IS @format<$playing('$meta_num(mood)')>

It is similar to old query but the string "$playing('$meta_sep(mood, AND mood IS )')" should only be applied if the playing track contains a mood tag. If not then the first part of the criteria is "mood IS qwert" - a value that doesn't exist.

But also here the same problem: If the playing track has no mood tag the whole database is displayed instead of nothing.

Before getting frustrated i like to ask again for help. 

foo_playlist_tree

Reply #1557
I tried following:

mood IS @format<$if($playing('%mood%'),$playing('$meta_sep(mood, AND mood IS )'),qwert)> AND "$meta_num(mood)" IS @format<$playing('$meta_num(mood)')>

It is similar to old query but the string "$playing('$meta_sep(mood, AND mood IS )')" should only be applied if the playing track contains a mood tag. If not then the first part of the criteria is "mood IS qwert" - a value that doesn't exist.

But also here the same problem: If the playing track has no mood tag the whole database is displayed instead of nothing.

Before getting frustrated i like to ask again for help. 


Try something like

@format<$if($playing('%mood%'),mood IS $playing('%mood%'),mood MISSING)>
There used to be a link to my website here.

foo_playlist_tree

Reply #1558
Is there any option not to have such a huge pts file (like in old PLT style)?
Mine is 92 megs and growing...

I remember having even more numerous and complicated queries with a 14KB pts file.

Maybe we can have the option to choose between huge pts file + fast FB start and tiny file + quite slow FB start. We usually launch FB once a day so it wouldn't be an issue, for us.

The giant file makes backups a pain in the neck.


Thanks.

foo_playlist_tree

Reply #1559
Try something like

@format<$if($playing('%mood%'),mood IS $playing('%mood%'),mood MISSING)>


Maybe this query is going to work - but it won't do what i like. Let me give an example: The playing mood is "hard, aggressive, militant" - but the criteria won't give back all the songs with mood "aggressive, hard, militant" because the single entries of the multiple tag are sorted in a different way.

So it is time to get frustrated! 

foo_playlist_tree

Reply #1560


Try something like

@format<$if($playing('%mood%'),mood IS $playing('%mood%'),mood MISSING)>


Maybe this query is going to work - but it won't do what i like. Let me give an example: The playing mood is "hard, aggressive, militant" - but the criteria won't give back all the songs with mood "aggressive, hard, militant" because the single entries of the multiple tag are sorted in a different way.

So it is time to get frustrated! 


I get that.  But you can use what I put in as a basis for getting what you want.  Make the mood IS $playing part more complex and add in whatever $meta_sep stuff you need.
There used to be a link to my website here.

foo_playlist_tree

Reply #1561
Oh?

Does that mean the criteria accepts just one @format<> expresssion? Did not know that!
I will try that and report the result.

Thanks!

foo_playlist_tree

Reply #1562
No, it doesn't work. I think there is a bug in processing an $if-function. Here is the way how i came to the conclusion:

At thirst i thought the playlist_gen_query language doesn't like all the $meta-functions because the following simple criteria (for purpose of testing)seemed to work:

@format<$if($playing('%artist%'), artist IS $playing('%artist%'), artist MISSING)>



But if you change the else part of $if function to get this:


@format<$if($playing('%artist%'), artist IS $playing('%artist%'), artist HAS ea)>


you should expect that f.e. the Beastie Boys are shown if playing track has no artist tag. But instead of that nothing is shown. I think the else part is never processed.

foo_playlist_tree

Reply #1563
No, it doesn't work. I think there is a bug in processing an $if-function. Here is the way how i came to the conclusion:


I think its more likely a bug in the way the $playing() function works.  Test what shows up witha  $playing() function when the song doesnt have the tag, and change your $if function to a test of that.... I dont have my foobar2000 handy, but my guess is that $playing is returning an empty string so just change your $if() to something like $greater($length($playing('bla')),0)
There used to be a link to my website here.

foo_playlist_tree

Reply #1564
i use this:

$if($strcmp($playing('%bla%'),?),A,B))
Music is my first love.

foo_playlist_tree

Reply #1565
Is it possible to include hidden text (using $hidetext() ) in display name sorting.

I have some text at the start of fuction but I only want to sort by it, not show it.

foo_playlist_tree

Reply #1566
I think its more likely a bug in the way the $playing() function works.  Test what shows up witha  $playing() function when the song doesnt have the tag, and change your $if function to a test of that.... I dont have my foobar2000 handy, but my guess is that $playing is returning an empty string so just change your $if() to something like $greater($length($playing('bla')),0)



I am not really sure what you mean - however i made the following test:

@format<$if($greater($len($playing('%artist%')),0), artist HAS dmc, artist HAS eas)>


If the playing track does not contain an artist tag the length of "$playing('%artist%')" is grater  "0" wich seems to be correct because "?" is also counted.

foo_playlist_tree

Reply #1567

I think its more likely a bug in the way the $playing() function works.  Test what shows up witha  $playing() function when the song doesnt have the tag, and change your $if function to a test of that.... I dont have my foobar2000 handy, but my guess is that $playing is returning an empty string so just change your $if() to something like $greater($length($playing('bla')),0)



I am not really sure what you mean - however i made the following test:

@format<$if($greater($len($playing('%artist%')),0), artist HAS dmc, artist HAS eas)>


If the playing track does not contain an artist tag the length of "$playing('%artist%')" is grater  "0" wich seems to be correct because "?" is also counted.


Use $if($strcmp($playing('%bla%'),?),A,B)) like Melomane suggested.
There used to be a link to my website here.

foo_playlist_tree

Reply #1568
Use $if($strcmp($playing('%bla%'),?),A,B)) like Melomane suggested.


It works!! 

So the problem was that if no tag exists $playing('tag') gives back a "?" if it is a string but doesn't give back nothing (neither true or false) if it is a logical statement?

foo_playlist_tree

Reply #1569
When I try to use this plug-in and I choose any of the menu options which are not greyed-out nothing happens!

How do I start using this?



Problem solved: you need the Playlist Tree panel open so the PLaylist Tree menu options have any effect!

Looking forward to using this plug-in.

foo_playlist_tree

Reply #1570
is it possible to make an Library tree?


foo_playlist_tree

Reply #1572
My Media Libary is not integrated in Foobar.
I click on the toolbar Libary - Album list .
But I want my Libary integrated on the left side like this.


foo_playlist_tree

Reply #1573
You are in the wrong thread! 

That is not Playlist Tree but Album List. However, if you like to place a panel in your ColumnsUi go to preferences ->View->ColimnsUi to create your layout. If you prefer Album List be sure to install the panel version.

foo_playlist_tree

Reply #1574
Sorry for wrong thread but I can't find the Album list topic.
Anyway, I go to, preference - Display, Colums UI, right?
I click tab Layout.
When I right click on vertical splitter, Insert panel, I dont see Album list in Panels, Playlist views, Splitters and Toolbar.

I use foo_ui_columns.dll
and
foo_uie_quicksearch.dll


EDIT.
sorry it's a little confusing for me, but I think I fixed it, I use foo_uie_albumlist.dll now.