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

foo_playlist_tree

Reply #1525
As foosion gave me a hint i was able to create this query for criteria (inspired by one of fabiosparks fancy queries):

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

The query works as long as i play atrack that contains the mood tag.
But if you play a track without any value for mood you expect to have an empty query. Instead of that PLT shows me all tracks of my database even that with mood tags.

The problem is so weird that even if you append "AND NOT mood MISSING" all tracks are shown.

foo_playlist_tree

Reply #1526
As foosion gave me a hint i was able to create this query for criteria (inspired by one of fabiosparks fancy queries):

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

The query works as long as i play atrack that contains the mood tag.
But if you play a track without any value for mood you expect to have an empty query. Instead of that PLT shows me all tracks of my database even that with mood tags.

The problem is so weird that even if you append "AND NOT mood MISSING" all tracks are shown.


Did you try putting NOT mood MISSING AND... as the beginning of the query?
There used to be a link to my website here.

foo_playlist_tree

Reply #1527
Did you try putting NOT mood MISSING AND... as the beginning of the query?


I think i tried both: at beginning and at end. But i will have a look.
However, if a track without any mood tag is played the query shouldn't give back at least  that tracks which have one.

Also i think it should be just an empty query as long as this is the behaviour if you have another tag: f.e. if you have "artist IS @format<$playing('%artist%')>" in criteria and you play a track without artist tag the query is empty.

 

foo_playlist_tree

Reply #1528
I have only one PLT panel.
In the preferences page I put "Desk.pts" in the file text box but when I exit foobar PLT keeps updating the "playlist-tree-0.pts" instead.
This happens even after I load the "Desk.pts" in the panel and then exit FB.
Is it a bug or not?
If not, what does the "File" textbox is for?

Thanks.

foo_playlist_tree

Reply #1529
Just had an idea...could you add a feature to create a dynamic playlist based on a tree node. So basically, it would be like an autoplaylist source but with all of the features of playlist tree.

foo_playlist_tree

Reply #1530
Is it possible to sort folders by say tracknumber but not displaying tracknumber. I need this for the folders not the leafs.

for example:

01 album\filename x
02 album\filename xx
03 album\filename xxx

then I use as a code
%tracknumber% %album%|%filename%

but isn't it possible to let it sort on tracknumber but no displaying the tracknumber.

like this:

album\filename x
album\filename xx
album\filename xxx

So it sort on tracknumber and not on albumname.
To much work by the way to do it manually and it looks better without the numbers.

foo_playlist_tree

Reply #1531
Just had an idea...could you add a feature to create a dynamic playlist based on a tree node. So basically, it would be like an autoplaylist source but with all of the features of playlist tree.


You can already do that using @node.


I have only one PLT panel.
In the preferences page I put "Desk.pts" in the file text box but when I exit foobar PLT keeps updating the "playlist-tree-0.pts" instead.
This happens even after I load the "Desk.pts" in the panel and then exit FB.
Is it a bug or not?
If not, what does the "File" textbox is for?

Thanks.


playlist tree manages the files itself now.  I don't know which text box you are referring to.  None of them are for specifying a playlist to save and load from.
There used to be a link to my website here.

foo_playlist_tree

Reply #1532

Did you try putting NOT mood MISSING AND... as the beginning of the query?


I think i tried both: at beginning and at end. But i will have a look.
However, if a track without any mood tag is played the query shouldn't give back at least  that tracks which have one.

Also i think it should be just an empty query as long as this is the behaviour if you have another tag: f.e. if you have "artist IS @format<$playing('%artist%')>" in criteria and you play a track without artist tag the query is empty.


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. 

foo_playlist_tree

Reply #1533
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.
There used to be a link to my website here.

foo_playlist_tree

Reply #1534
Sorry! I don't understand really. Also i don't know how to rework. 

foo_playlist_tree

Reply #1535
Hi,

is it possible to display a query in different modes (album-mode or single-mode) according to the query? The different modes work with playlist-switcher (see this Tutorial), but I didn`t find a way to do the same with Playlist-tree. How should the query be, in order to display in single-mode -s-?

foo_playlist_tree

Reply #1536
Hi

Thanks for a great component.

I'm using the 'Resume Playback on Restart' function on preferences - which works fine using the Album List component, so I know it works.

But with Playlist tree - on restart it resumes to play a track in the main *Browser* playlist from the beginning. For example if i'm playing the 4th song in my ratings config - on reload it will play the 4th song in the *Browser*...

Have you come across this and know how I can fix this??

Thanks in advance

foo_playlist_tree

Reply #1537
I'm using the 'Resume Playback on Restart' function on preferences - which works fine using the Album List component, so I know it works.

But with Playlist tree - on restart it resumes to play a track in the main *Browser* playlist from the beginning. For example if i'm playing the 4th song in my ratings config - on reload it will play the 4th song in the *Browser*...

Have you come across this and know how I can fix this??


Sounds more like a foo_browser problem that playlist tree.... someone here might know a workaround or you could ask in the foo_browser thread.  I no longer use foo_browser so I don't know how to fix that.
There used to be a link to my website here.

foo_playlist_tree

Reply #1538
Quote
Sounds more like a foo_browser problem that playlist tree.... someone here might know a workaround or you could ask in the foo_browser thread.  I no longer use foo_browser so I don't know how to fix that.


Thanks for the advice- didnt even think to look there - found the answer on the foo_browser thread  - was to do with populating on startup. 

foo_playlist_tree

Reply #1539

Just had an idea...could you add a feature to create a dynamic playlist based on a tree node. So basically, it would be like an autoplaylist source but with all of the features of playlist tree.
You can already do that using @node.
How would that automatically create a playlist? I understand that it would create a node in the tree, but you would still need to activate the node to load an actual playlist...unless I'm missing something.

foo_playlist_tree

Reply #1540
gfngfgf
in the last version of playlist tree
cwbowron as Added notification callback, so other plugins can be notified of tree selections.

do you think it is possible to use this in album art panel ?
thanks

I received this request for foo_uie_albumart, and I'm willing to oblige, but I can't find any information about this notification callback in playlist tree.  I assume that I'll need to add something to album art panel's code to handle the notification, but again, I need to know what to handle.  Thanks.

foo_playlist_tree

Reply #1541
I received this request for foo_uie_albumart, and I'm willing to oblige, but I can't find any information about this notification callback in playlist tree.  I assume that I'll need to add something to album art panel's code to handle the notification, but again, I need to know what to handle.  Thanks.

Cool.

I haven't tested this exhaustively, but I believe it should work.  If you do find any problems I will fix them quickly.

You'll have to implement a node_select_callback, shown below, and handle the on_node_select function.  The pointer will be to a callback_node class item, defined below.  get_entries will get all the entries in the node as  a list, and they will be in the order they are in the tree but flattened into a list.

If you have any suggestions on how to make this more useful, please let me know.

Thanks.

Code: [Select]
class callback_node
{
public:
  virtual bool  get_entries( pfc::list_base_t<metadb_handle_ptr> & list ) const = 0;
  virtual bool  is_leaf() const    = 0;
  virtual bool  is_folder() const  = 0;
  virtual bool  is_query() const    = 0;
  virtual int    get_entry_count() const = 0;
  virtual void  get_name( pfc::string_base & out ) const = 0;
};

class NOVTABLE node_select_callback : public service_base
{
public:
  virtual void on_node_select( const callback_node * node ) = 0;

  FB2K_MAKE_SERVICE_INTERFACE_ENTRYPOINT(node_select_callback);
};

const GUID node_select_callback::class_guid =
{ 0x9c2ae3c3, 0xdc04, 0x4042, { 0xad, 0xf3, 0x88, 0x84, 0x11, 0x7b, 0x49, 0x55 } };

There used to be a link to my website here.

foo_playlist_tree

Reply #1542
i have this query:

source: database
query: nothing
format:

%<album artist,artist>%|%album%|$if($strcmp(@format<$parent('%_displayname%',2)>,'Various Artists'),%track artist%) %title%

problem is not display %track artist% when name of parent folder(2) is Various Artists

how use $parent and %_displayname% ?

thanks

edit: ok work only in label or i am wrong?
Music is my first love.

foo_playlist_tree

Reply #1543
Hi all,

i think this shows what i'm trying to do:

Code: [Select]
[b]Label:[/b]
PlayedThisMonth- @format<%_itemcount%> - @format<%_play_length%>

[b]Source:[/b]
@playlist<Temp>

[b]Criteria:[/b]
$substr(%last_played%,1,7)  IS $substr(%cwb_systemdate%,1,7)

[b]Format:[/b]
%title% - $substr(%last_played%,1,7) - $substr(%cwb_systemdate%,1,7)


Well, it just doesn't work. According to the "Format"-Line it shows me that both Strings are equal. But the Criteria won't work. I also tried "EQUAL" and "EQUALS" instead if "IS".

The Critera shown above gives me back all items in <Temp>, with "EQUALS" it gives me back 0 items.

Would be nice to have this. Can anyone help me?


rainer

foo_playlist_tree

Reply #1544
Try this in Criteria:

"$substr(%last_played%,1,7)"  IS @format<$substr(%cwb_systemdate%,1,7)>

foo_playlist_tree

Reply #1545
Try this in Criteria:

"$substr(%last_played%,1,7)"  IS @format<$substr(%cwb_systemdate%,1,7)>


jepp, works fine, this must be the one combination i never tried, and i tried much of them.

Can you explain in short when i have to use '"', when "@format<>" and when none of them?



Thanks a lot

rainer

foo_playlist_tree

Reply #1546
I want to create a Genre query which lists the genres, and then the styles as sub-folders (if it exists) and artists and so on as subfolders there again. I've managed to do that without any problem. However, for songs that have multiple genres (e.g. Jazz; Ambient), the folder will show up as Jazz, Ambient. What I want to do is to list that song under both Jazz and Ambient. How do I do this?

Also, I want the sub-folders (styles) to list before the artists. As it looks now, it could be

- Jazz
--> Fourplay
--> Smooth Jazz

where fourplay is an artist and smooth jazz is a style (sub-folder) which contains more artists.

foo_playlist_tree

Reply #1547
I want to create a Genre query which lists the genres, and then the styles as sub-folders (if it exists) and artists and so on as subfolders there again. I've managed to do that without any problem. However, for songs that have multiple genres (e.g. Jazz; Ambient), the folder will show up as Jazz, Ambient. What I want to do is to list that song under both Jazz and Ambient. How do I do this?

Also, I want the sub-folders (styles) to list before the artists. As it looks now, it could be

- Jazz
--> Fourplay
--> Smooth Jazz

where fourplay is an artist and smooth jazz is a style (sub-folder) which contains more artists.

Use %<genre>% instead of %genre%.

That should make the tracks appear both under "jazz" and "ambient".

foo_playlist_tree

Reply #1548

Try this in Criteria:

"$substr(%last_played%,1,7)"  IS @format<$substr(%cwb_systemdate%,1,7)>


jepp, works fine, this must be the one combination i never tried, and i tried much of them.

Can you explain in short when i have to use '"', when "@format<>" and when none of them?



Thanks a lot

rainer


You have to use "" if you are using Tagz before an operator like IS or HAS (that is part of the Query language and you can use that in each component that uses the language)

You have to use @format if you are using Tagz after an operator (that is playlist tree specific)