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 712735 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

foo_playlist_tree

Reply #1500
I tried something similar but it doesn't work although i used the PT2 specific language.

your example:    @format<'$len(%tag%)> GREATER 4.

But it seems that you only can use the @format function for the value but not for the field expression of a playlist_gen_query. Would like to have that useful feature to create some fancy queries with my %mood%, %style%, %situation% tags! 

foo_playlist_tree

Reply #1501
I need a little help with this script.

Code: [Select]
$if(%artist%,
%artist%|['['%date%']'] $if2(%album%,-<Unknown album>-)|[$num(%tracknumber%,2) - ]%title%,
$if(%album%,-<Unknown artist>-|%album%|[$num(%tracknumber%,2) - ]%title%,-<Unknown artist>-|<Unknown album>|[$num(%tracknumber%,2) - ]%title%)
)


I have no criteria. What I want it to do, basically, is to sort by artist and put all the tracks without artists but with album into "-<Unknown artist>-|album|title", and all tracks without both artist and album into "-<Unknown artist>-|-<Unknown album>-|title. When I use line 2 and 3 separately (in separate queries) with "artist MISSING" and "NOT artist MISSING" they work perfectly, but once I put them together here, the tracks without artist but with album does not get listed.

Does anybody have an idea of what is wrong?

foo_playlist_tree

Reply #1502
Nevermind, I figured it out - the problem was that the tracks I expected to have artist, did have an album artist, and therefore they did not count as having no artist at all.

Is there a way to check only the artist field, and not the album artist, composer or performer?


foo_playlist_tree

Reply #1504
I have tried to set the double-click action on this plugin to be "Edit Other/Add to Specified Playlist"  The problem is, when you do that there is no place to specify the playlist you want to send to.  Would there be anyway to add an option to define a specifed playlist to add tracks to if you select that option as an action?

Thanks!


I just want to second this request in case it got missed in the jumble of other posts.  It is already possible to specify a playlist when setting hotkeys, and a similar thing for the playlist tree menu would be completely fantastic - it would allow a playback behavior that is closer to what people intuitively expect when browsing and playing music at the same time.  I have been scouring the forums looking for some way to get foobar to play and browse in separate playlists, and while there are a ton of awkward workarounds out there (using the queue, right clicking and selecting send to playlist, etc.) this little function would work perfectly. 

Seriously, from the searching I have done it seems like there are quite a few people who would love a way to make their foobar act like this, and making this option functional would be an amazing solution.  I honestly can't stress enough how great it would be if this could be implemented, as it would fix the single biggest issue I (and others, apparently) have with the way foobar handles playback.

foo_playlist_tree

Reply #1505
I just want to second this request in case it got missed in the jumble of other posts.  It is already possible to specify a playlist when setting hotkeys, and a similar thing for the playlist tree menu would be completely fantastic - it would allow a playback behavior that is closer to what people intuitively expect when browsing and playing music at the same time.  I have been scouring the forums looking for some way to get foobar to play and browse in separate playlists, and while there are a ton of awkward workarounds out there (using the queue, right clicking and selecting send to playlist, etc.) this little function would work perfectly.


Its being looked into and should be in the next release.
There used to be a link to my website here.

foo_playlist_tree

Reply #1506
Is there a way to refresh one query only?

If I launch the refresh queries, it goes on forever (killed FB after 4 mins) so,
probably there is some unsafe query in my tree.

To check which one is, I need to be able what I asked above.
Or some other way is there, maybe? (apart having to remove all queries
and then add one at a time, of course)

Thanks.

foo_playlist_tree

Reply #1507
Is there a way to refresh one query only?


middle click or shift right click on the query node and select "refresh queries".  It will only refresh that query.  Also if you have a static folder that contains multiple queries you can click on it, and select "refresh queries" and it will refresh ONLY the queries underneath it.
There used to be a link to my website here.

foo_playlist_tree

Reply #1508

Is there a way to refresh one query only?


middle click or shift right click on the query node and select "refresh queries".  It will only refresh that query.  Also if you have a static folder that contains multiple queries you can click on it, and select "refresh queries" and it will refresh ONLY the queries underneath it.


Yes, I knew that but, due to the extra long time it took, and to the "s" at the end of the word "queries", for a moment I thought it was refreshing always everything.

Anyway, I tried that refresh on a couple of queries and this is what came out:

1)
Format= %artist%|%title% - %album%
Sort= by name after populating
refresh time = 2 secs

2)
Format= %artist%|%title%|%album%
Sort= by name after populating
refresh time = 65 secs

3)
Format= %artist%|%date%|%title%|%album%
Sort= by name after populating
refresh time = 118 secs

but...

following a hint I found in the wiki, I put "%overallindex%: %_name%" in the Folder name box of the preferences and that was the problem.
Removing that %overallindex%, reduced the time of 2) and 3) to a couple of secs.

As I'd like to be able to refresh a query and send it to a playlist with a remote control, is there a way to link a query to a keyboard shortcut without using that slowing function?
(Maybe assigning a fixed index number manually)

Thanks

foo_playlist_tree

Reply #1509
Having problems with nodes.

I've created a folder called "blah".  Under this folder, I have a few queries.  I'd like to use the contents of this folder in another query.  I've tried every possible iteration that I can think of and I can't get anything to work. 

* What is the actual definition of a node?
* Would the node name for a folder labeled 'blah' be 'blah' or 'Folder::blah' ?
* Does the 'folder format:' config option change the node name?
* The node syntax is used as a source so is used only in the Criteria section of a query?

I've searched and read as much as I could but am still lost..

-Michael

foo_playlist_tree

Reply #1510
Having problems with nodes.

I've created a folder called "blah".  Under this folder, I have a few queries.  I'd like to use the contents of this folder in another query.  I've tried every possible iteration that I can think of and I can't get anything to work. 

* What is the actual definition of a node?
* Would the node name for a folder labeled 'blah' be 'blah' or 'Folder::blah' ?
* Does the 'folder format:' config option change the node name?
* The node syntax is used as a source so is used only in the Criteria section of a query?

I've searched and read as much as I could but am still lost..


You should be able to use that node as the Source of another query using "@node<blah>"

The folder format should not affect it.

Here's an example.
There used to be a link to my website here.

 

foo_playlist_tree

Reply #1511
[/quote]

You should be able to use that node as the Source of another query using "@node<blah>"

The folder format should not affect it.

Here's an example.
[/quote]

Thanks for the quick reply.  I've tried your example verbatim on 2.2.4 with no success.  I assure you that I have songs with the RATING field flushed out

Any ideas on how to troubleshoot further?

http://nibbler.wiscnet.net/~m7h/node_woes.jpg


foo_playlist_tree

Reply #1513

Any ideas on how to troubleshoot further?


You could try @node<blah {28G}> to see if the {} stuff is what's causing the issue.


Yup, that was it!  I thought I had tried this before bothering you, but I guess not.  That's a bummer, since foo_playlist_tree is the only way I know how to get the size of a playlist, but these two features seem to be incompatible.  The reason the size of the playlist was important is because I am now using foo_dop to sync to my Ipod and I have more music than what the Ipod can handle in my library.

foo_playlist_tree

Reply #1514
Yup, that was it!  I thought I had tried this before bothering you, but I guess not.  That's a bummer, since foo_playlist_tree is the only way I know how to get the size of a playlist, but these two features seem to be incompatible.  The reason the size of the playlist was important is because I am now using foo_dop to sync to my Ipod and I have more music than what the Ipod can handle in my library.


I checked the code, and I am using the display name so that makes sense.

I added it to the known bugs, and I will probably take a look at fixing that when i get a chance.

In the mean time, you can could the display to just using the name and right click a node and select "Properties" to find out the filesize, or you could do like i do and use a track info panel that displays information about the currently selected playlist tree node.  This is what I use:

Code: [Select]
$align(left,middle)
Node: $treenode(displayname)$char(10)
Size: $cwb_splitnum($treenode(size))$char(10)
Count: $treenode(itemcount%)$char(10)
Duration: $cwb_wdhms($treenode(duration))$char(10)
There used to be a link to my website here.

foo_playlist_tree

Reply #1515
Yes, I knew that but, due to the extra long time it took, and to the "s" at the end of the word "queries", for a moment I thought it was refreshing always everything.

Anyway, I tried that refresh on a couple of queries and this is what came out:

1)
Format= %artist%|%title% - %album%
Sort= by name after populating
refresh time = 2 secs

2)
Format= %artist%|%title%|%album%
Sort= by name after populating
refresh time = 65 secs

3)
Format= %artist%|%date%|%title%|%album%
Sort= by name after populating
refresh time = 118 secs

but...

following a hint I found in the wiki, I put "%overallindex%: %_name%" in the Folder name box of the preferences and that was the problem.
Removing that %overallindex%, reduced the time of 2) and 3) to a couple of secs.

As I'd like to be able to refresh a query and send it to a playlist with a remote control, is there a way to link a query to a keyboard shortcut without using that slowing function?
(Maybe assigning a fixed index number manually)

Thanks


Using %_folderindex%,%_itemcount% and %_nestlevel% even at the same time in the format of the name doesn't slow the refresh so extremly. Due to that perhaps that painful slow refreshing at %_overallindex% could be considered as a bug - means: a chance to change that?

foo_playlist_tree

Reply #1516
Man...I'm trying to create a query that will display all the songs of the album of the currenly playing track...and to let it auto-refresh when a new song starts. I really have no ideo how to do it... I have this:



Now when I manually refresh, it works...but it dosn't at all update automatically when a new songs starts playing. Why is this? I have checked the box and I have mad a $playing() query...
Les mots d'amour...

foo_playlist_tree

Reply #1517
Man...I'm trying to create a query that will display all the songs of the album of the currenly playing track...and to let it auto-refresh when a new song starts. I really have no ideo how to do it... I have this:

Now when I manually refresh, it works...but it dosn't at all update automatically when a new songs starts playing. Why is this? I have checked the box and I have mad a $playing() query...


I'm not sure why that wouldnt work... It looks very similar to mine... You could try changing the label to "Now Playing: @format<$playing('%album%')>"... that might work...
There used to be a link to my website here.

foo_playlist_tree

Reply #1518

Man...I'm trying to create a query that will display all the songs of the album of the currenly playing track...and to let it auto-refresh when a new song starts. I really have no ideo how to do it... I have this:

Now when I manually refresh, it works...but it dosn't at all update automatically when a new songs starts playing. Why is this? I have checked the box and I have mad a $playing() query...


I'm not sure why that wouldnt work... It looks very similar to mine... You could try changing the label to "Now Playing: @format<$playing('%album%')>"... that might work...

Nope...doesn't work
Les mots d'amour...

foo_playlist_tree

Reply #1519
That is very strange: Both queries must work!???

An idea: Remove population sort that so or so not makes sense and check sort display by name

foo_playlist_tree

Reply #1520
That is very strange: Both queries must work!???

An idea: Remove population sort that so or so not makes sense and check sort display by name

Yes, both queries work...the problem is that they don't auto-refresh when a new song starts playing...
Les mots d'amour...

foo_playlist_tree

Reply #1521
I have my playlist tree setup as a simple list of misc. queues, which will be added to a new playlist with the same name. However it will always create a new playlist. Would it be possible to make it check if a playlist by the same name already exists and clear (/delete it) it before sends the results?

Also could you make "Play in Library Playlist" activate the playlist and add option to play in the actions, f.ex. "New playlist and play"?

Thanx for a great panel 
Can't wait for a HD-AAC encoder :P

foo_playlist_tree

Reply #1522
I have my playlist tree setup as a simple list of misc. queues, which will be added to a new playlist with the same name. However it will always create a new playlist. Would it be possible to make it check if a playlist by the same name already exists and clear (/delete it) it before sends the results?

Also could you make "Play in Library Playlist" activate the playlist and add option to play in the actions, f.ex. "New playlist and play"?

Thanx for a great panel 


You can use the "Rename last library playlist when sending" option so that only one library playlist is ever created and then subsequent sends will rename and repopulate that playlist.

You can get a New Playlist and Play functionality with foosion's foo_utils.
There used to be a link to my website here.

foo_playlist_tree

Reply #1523
You can use the "Rename last library playlist when sending" option so that only one library playlist is ever created and then subsequent sends will rename and repopulate that playlist.

You can get a New Playlist and Play functionality with foosion's foo_utils.

Thanks 
Can't wait for a HD-AAC encoder :P

foo_playlist_tree

Reply #1524
it is possible to have in the same tree:

various artists album ( woodstock 99 -
                                                                        - alanis morrisette - so pure
                                                                      - elvis costello - alison)
and
artist list                      (alanis morrisette-
                                                                            woodstock 99 -
                                                                                                            - so pure
                                                          mtv unplugged
                                                                                - you learn)

thanks
Music is my first love.