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

foo_playlist_tree

Reply #1450


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?


You're best bet, is to just use %_name% for the folder display variable, and set the name of your 5 rating queries to "Favorites @format<%_itemcount%>", etc.
There used to be a link to my website here.

foo_playlist_tree

Reply #1451
You're best bet, is to just use %_name% for the folder display variable, and set the name of your 5 rating queries to "Favorites @format<%_itemcount%>", etc.


Hmmmm.... seem to remember trying that as well and each query name was displayed literaly

+Favorites @format<%_itemcount%>
+Very Good @format<%_itemcount%>
+Good @format<%_itemcount%>
..
..

but, as I'm at the library (not at home) and can't quite remember - so I'll give it a shot when I get home...

btw... shouldn't %_itemcount% be quoted?
oh, and thanks for the prompt reply....

BLAH.... ok, so my memory fails.... right you were, thanks again for the help!

but I still think there's something wonky about the way $parent() & %_itemcount% interact...

foo_playlist_tree

Reply #1452
i thought of a few small things that might improve this component. first, if the playback order is set to shuffle, the first track played when sending to the playlist should follow this rule. also, can there be an option to not automatically select the tracks that are sent to the playlist?

foo_playlist_tree

Reply #1453
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!

foo_playlist_tree

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


I'm having similar issues.  NOT play_count MISSING doesn't work for me.  If I put it in, no files show up.  I'm trying to make a Most Played albums list by using $avg, and I'm having trouble figuring out the script.  I mostly copied the $avg rating script posted earlier, but it's not quite working.

foo_playlist_tree

Reply #1455

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


I'm having similar issues.  NOT play_count MISSING doesn't work for me.  If I put it in, no files show up.  I'm trying to make a Most Played albums list by using $avg, and I'm having trouble figuring out the script.  I mostly copied the $avg rating script posted earlier, but it's not quite working.


I use "%play_counter% GREATER 0" for testing for play count, and I use "%last_played% HAS 20" for testing for a last played date.  (Assumes all your last_played values are going to be in 2000's)...
There used to be a link to my website here.

foo_playlist_tree

Reply #1456


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


I'm having similar issues.  NOT play_count MISSING doesn't work for me.  If I put it in, no files show up.  I'm trying to make a Most Played albums list by using $avg, and I'm having trouble figuring out the script.  I mostly copied the $avg rating script posted earlier, but it's not quite working.


I use "%play_counter% GREATER 0" for testing for play count, and I use "%last_played% HAS 20" for testing for a last played date.  (Assumes all your last_played values are going to be in 2000's)...


Okay, that did seem to work.  Now, what I really want to achieve here is not the last 100 tracks I've played, but rather the last few albums (100 tracks of albums is fine) that I've played.  It's MOSTLY working, but there are a few bugs.  Screenshots would probably explain it best, so here they are...



I'm assuming the ordering issue is because I'm populating by play_count, but still, is there any way to fix that?  I'm not so sure how to fix the non-full album issue.  All of the albums that aren't full have been played through at least once, so all of their tracks have a play_count of at least 1.  However, I'm also concerned in the future that what if I really don't like one particular track on an album, so it's play_count is zero for some reason, but the rest of the album has been heard 8,000 times.  Can I use $avg('%play_count%') GREATER 0 as Criteria?

foo_playlist_tree

Reply #1457
Okay, that did seem to work.  Now, what I really want to achieve here is not the last 100 tracks I've played, but rather the last few albums (100 tracks of albums is fine) that I've played.  It's MOSTLY working, but there are a few bugs.  Screenshots would probably explain it best, so here they are...


If you want it to sort by the tracknumber after populating, check the "Sort by display name" box.  I am assuming that tracks are missing because those tracks are not in the 100 most played tracks.  You are limiting it to 100 tracks, based on the play count.  Tracks that are not in the top 100 most played are being cut so you do not have full albums.

Quote
I'm assuming the ordering issue is because I'm populating by play_count, but still, is there any way to fix that?  I'm not so sure how to fix the non-full album issue.  All of the albums that aren't full have been played through at least once, so all of their tracks have a play_count of at least 1.  However, I'm also concerned in the future that what if I really don't like one particular track on an album, so it's play_count is zero for some reason, but the rest of the album has been heard 8,000 times.  Can I use $avg('%play_count%') GREATER 0 as Criteria?


No, you cannot use $avg inside of criteria.  It applies ONLY to a FOLDER.  At the time the criteria is being applied no folders exist.  I dont know if there is a way to do exactly what you want.

Best I can think of is this:

Code: [Select]
Source: @database:
Criteria: %play_count% GREATER 0
Format: @quote<@format<$avg('%play_count%'>> %album%|%tracknumber% - %title%
Limit: 10 SUBFOLDERS
Population Order: $sub(99999,%play_counter%)
[x] Sort by display name after populating.


That should give you 10 albums that contain the most played songs.
There used to be a link to my website here.

foo_playlist_tree

Reply #1458

Okay, that did seem to work.  Now, what I really want to achieve here is not the last 100 tracks I've played, but rather the last few albums (100 tracks of albums is fine) that I've played.  It's MOSTLY working, but there are a few bugs.  Screenshots would probably explain it best, so here they are...


If you want it to sort by the tracknumber after populating, check the "Sort by display name" box.  I am assuming that tracks are missing because those tracks are not in the 100 most played tracks.  You are limiting it to 100 tracks, based on the play count.  Tracks that are not in the top 100 most played are being cut so you do not have full albums.

Quote
I'm assuming the ordering issue is because I'm populating by play_count, but still, is there any way to fix that?  I'm not so sure how to fix the non-full album issue.  All of the albums that aren't full have been played through at least once, so all of their tracks have a play_count of at least 1.  However, I'm also concerned in the future that what if I really don't like one particular track on an album, so it's play_count is zero for some reason, but the rest of the album has been heard 8,000 times.  Can I use $avg('%play_count%') GREATER 0 as Criteria?


No, you cannot use $avg inside of criteria.  It applies ONLY to a FOLDER.  At the time the criteria is being applied no folders exist.  I dont know if there is a way to do exactly what you want.

Best I can think of is this:

Code: [Select]
Source: @database:
Criteria: %play_count% GREATER 0
Format: @quote<@format<$avg('%play_count%'>> %album%|%tracknumber% - %title%
Limit: 10 SUBFOLDERS
Population Order: $sub(99999,%play_counter%)
[x] Sort by display name after populating.


That should give you 10 albums that contain the most played songs.


Ahh, I used the $sub() method back when this first came out, and that opertion used to take awhile.  I'm so glad it's sped up now!  Anyways, this seems to work almost perfectly.  The only remaining problem is that since it's sorted by name, the folders go from like, 3 - > 12 (based least listened to on top) as opposed to 12 -> 3 (most listened to appears as first subfolder).  If I uncheck reverse, then the list naturally populates with the reverse of $sub(99999,%play_counter%), which means the hold list is albums I've only heard once.

Also, what's the syntax for $hidetext?  I want to hide the number of times an album has been played (I think, haven't decided yet).  I tried $hidetext(@quote<...>) and @hidden<@quote<...>>, with no luck.  Edit: Figured out $hidetext, but as expected, it screws up the ordering of my 20 most played albums (it makes them alphabetical).  I'm guessing that there's no way around this?  Still, this isn't a big issue - I'd much rather find a fix for the issue above.

foo_playlist_tree

Reply #1459
Hello Chris!

Now after you started continuing the development of PT let me mention three smaller bugs/issues concerning the autorefresh of @playlist/s queries (two of them i already reported weeks ago):

1. If a @playlists<> query with checked autorefreshed option is created the autorefresh is not checked for the @playlist<> children

2. When you remove a whole playlist "bla" (f.e. by context menu switcher/tab) the @playlist<bla> is not refreshed if this @playlist<bla> query doesn't belong to a @playlists<> query

3. Changing the position of a playlist (by drag&drop or by "move left/right") don't causes autorefresh of @playlists<> query. So the order of playlists isn't correct anymore in Pt  ( can be achieved by  no population sort order and no display sort)

That's it! 

foo_playlist_tree

Reply #1460
Code: [Select]
 $if($greater($strstr(%<performer>%,voice),0)
    ,$if($greater($strstr(%<performer>%,woman),0),woman,
     $if($greater($strstr(%<performer>%,group),0),group,man))
    ,nobody)|
$left(%<performer>%,$sub($strchr(%<performer>%,'('),4))|
%artist%|
%title%
(The indentation in the code box is just for better readibility.)

I'm trying to port this query from old 1.7.0b3 where all the now converted %<performer>% were written as #performer#.
My files are tagged like that:

performer = Abbey Lincoln  (voice - woman), other performers.......
performer = Jimmy Rushing  (voice - man), other performers....
performer = Manhattan Transfer  (voice - group), other performers.....

When I created it and whenever I refresh it, I get a sort of freezing up and the task manager shows me FB is eating up the RAM but nothing else happens. I have to kill the service.

Where is the problem?
--------------------------------

Can you confirm that $meta(x,y) now starts with y=0 but previously started with y=1?

Can you also confirm that @limit<> is not working with multi values %<tag>% ?

Thanks.

foo_playlist_tree

Reply #1461
Sometimes (haven't tested when) I'm getting this in the console:
"Playlist Tree exceeds selection action limit"


Weird behaviour.

I use a %performer% multi values tag with info like: Sarah Vaughan  (voice - woman)
or Jimmy Rushing  (voice - man) or Manhattan Transfer  (voice - group) plus the other performers.

Now I'm trying to port this query:

Code: [Select]
$if($greater($strstr(#performer#,voice),0),
$if($greater($strstr(#performer#,woman),0),woman,
$if($greater($strstr(#performer#,group),0),group,man)),nobody)|
$left(#performer#,$sub($strchr(#performer#,'('),4))|%artist%|%title%


Of course I replaced all the #performer# with %<performer>%.

This is what happens:

FB 0.8.3  PlaylistTree 1.7.0b3: It works and refreshes in less than 3 seconds.

FB 0.9.3.1  PlaylistTree 2.2.3:  when I click OK after writing the format string I get a CPU load of 100% and I don't know for how long it would last because I killed FB process after 6 mins of that load.

--------

Please, clear me a doubt:

1.7.0b3  @node<node name>  went into the "Query" text box.

Am I right that in 2.2.3 I have to put it in the "Source" box to make it work? Shall I have to put a "1" in the "Criteria" box instead?



Thanks.

foo_playlist_tree

Reply #1462
Sometimes (haven't tested when) I'm getting this in the console:
"Playlist Tree exceeds selection action limit"


Weird behaviour.


No, its working as designed.  There's an option where you set your selection actions on the "Mouse and Keyboard" playlist tree options called File Limit.  If the node you select has more files than this, the selection action will not be performed.  Its the help reduce lag when you select a really large node.  You can set it to 0 I believe and it will never be used.

Quote
Now I'm trying to port this query:

Code: [Select]
$if($greater($strstr(#performer#,voice),0),
$if($greater($strstr(#performer#,woman),0),woman,
$if($greater($strstr(#performer#,group),0),group,man)),nobody)|
$left(#performer#,$sub($strchr(#performer#,'('),4))|%artist%|%title%


There's some issues with the %<tag>% stuff in version 2.x of playlist tree that make it not work well inside of complicated scripts.  It's on my list of bugs to fix at some point.
There used to be a link to my website here.

foo_playlist_tree

Reply #1463
Is @limit<> still alive?
If yes, with which syntax?

Thanks.

(Sorry to pester you with all these questions but i've just started to ported seriously...)



Mmmmm, yes, I can see it still is.
I was trying it wit a %<tag>% and I couldn't see it work.
With a standard %tag% it works.

After testing it a bit, I'm a bit puzzled about some results I'm getting from a limited query.

Code: [Select]
@limit<5>$if($greater(%date%,1999),20$substr(%date%,3,3)0s,
19$substr(%date%,3,3)0s)|@limit<1>%artist%|%date% - %title%

The population order is set to $rand()

I checked with this other query
Code: [Select]
$if($greater(%date%,1999),20$substr(%date%,3,3)0s,19$substr(%date%,3,3)0s)|%date%|%artist%|%title%

and I can see I have one track of 1917 and 177 of the 20s (from 13 different artists).
With the limited query, I would expect to always get the 1917 track in the 1910s group and to get 5 tracks from different artists for the 1929s group. Instead, after countless refreshings I've never seen appear a 1910s group and I always end up with a Fats Waller track as a single component of the 1920s group: would you mind explaying me how the @limit<> works, in detail?

Thanks.

 

foo_playlist_tree

Reply #1464
If I hide both the lines and the root node the + disappears and I can't use the tree.

---------

It seems %__replaygain_track_gain%  (even without the %%) is not considered in the criteria box.
It works in the format, instead.
Am I wrong or should I use some other formatting in the criteria box?


Thanks.

foo_playlist_tree

Reply #1465
If I hide both the lines and the root node the + disappears and I can't use the tree.


That's how the standard treeview control works.

In that situation, you can use the right and left arrow keys to expand and contract the node.
There used to be a link to my website here.

foo_playlist_tree

Reply #1466
Hi!

I'd really like to use this query artist IS @format<$playing('%artist%')> (copied it from the author's homepage). It works quite fine except the artist's name contains a ( or ), then the query returns just the entire database. When I change the query to artist IS "@format<$playing('%artist%')>" it works for artists with ( or ) in their names, but it doesn't work anymore for artists with quotation marks " in their names.

Does anybody know a solution for this problem?

Thank you

foo_playlist_tree

Reply #1467
I'd really like to use this query artist IS @format<$playing('%artist%')> (copied it from the author's homepage). It works quite fine except the artist's name contains a ( or ), then the query returns just the entire database. When I change the query to artist IS "@format<$playing('%artist%')>" it works for artists with ( or ) in their names, but it doesn't work anymore for artists with quotation marks " in their names.


I can't try it right now, but you might be able to use:

Code: [Select]
artist IS "@format<$replace($playing('%artist%'),$char(34),'$char(34)')>"
There used to be a link to my website here.

foo_playlist_tree

Reply #1468
I'd really like to use this query artist IS @format<$playing('%artist%')> (copied it from the author's homepage). It works quite fine except the artist's name contains a ( or ), then the query returns just the entire database. When I change the query to artist IS "@format<$playing('%artist%')>" it works for artists with ( or ) in their names, but it doesn't work anymore for artists with quotation marks " in their names.


I can't try it right now, but you might be able to use:

Code: [Select]
artist IS "@format<$replace($playing('%artist%'),$char(34),'$char(34)')>"



Nope, it works for ( and ), but artists with " aren't working

But nevertheless thank you for your great plugin

foo_playlist_tree

Reply #1469
What @format and @quote do?

When should I use them?

Where can I use them?


Thanks.

foo_playlist_tree

Reply #1470
This is a query that I use in foobar 0.8.3 with the 1.7.13 version of this plugin to show the songs I've played today. What would this look like in the current version 2.2.3 for foobar 0.9.3 ?
Query:
Code: [Select]
$strcmp($replace($left(%last_played%,10),-,),%_systemdate%)

foo_playlist_tree

Reply #1471
Say, is there a way to exclude certain files, for example .m3u-files, in a @drop query?

foo_playlist_tree

Reply #1472
Say, is there a way to exclude certain files, for example .m3u-files, in a @drop query?


no, but excluding playlists from @drop queries has been requested and is on the list... and I may get around to it sometime :-)
There used to be a link to my website here.

foo_playlist_tree

Reply #1473
Aha, i see.

Well, guess i have to do it manually then while we wait for that feature. =)

foo_playlist_tree

Reply #1474
(error)