this is not simple, is there any way to have a playlist with the 2 highest rated songs for each artist?
jkwarras
May 25 2005, 06:18
QUOTE(khoma @ May 25 2005, 03:26 AM)
this is not simple, is there any way to have a playlist with the 2 highest rated songs for each artist?

Try this:
CODE
Query: rating IS 2
[x]foo_playlist_gen format
Format:
$if(%album artist%,%album artist%,%artist%)]|'('[%date%]')' [%album%]|$if(%album artist%,[[%disc%.][$num(%tracknumber%,2) - ] ]%artist% - $if2(%title%,%_filename_ext%),[[%disc%.][$num(%tracknumber%,2) - ] ]$if2(%title%,%_filename_ext%))
Sort: [x] Display
This will return every song that has a rating of 2, and displayed as
Artist>(Date) Album>Tracknumber - Song.
You can modify the format as you wish, i.e. just to display the artist subfolder.
masterrossi
May 25 2005, 09:53
i think i am just plainly stupid, cause whatever I try I do not get this thing to work. I won't even succeed to make it appear as column in foobar. I must be doing something wrong, but I really don't know what.
I read in the .txt file that came with it that you should do something with "panels" but there the fun starts...where can i find that???
masterrossi
May 25 2005, 10:35
i am improving...found what was wrong...i thought all the time i had the right colums, but i didn't. Now I have it...up to the next thing...
QUOTE(jkwarras @ May 25 2005, 06:18 AM)
QUOTE(khoma @ May 25 2005, 03:26 AM)
this is not simple, is there any way to have a playlist with the 2 highest rated songs for each artist?

Try this:
CODE
Query: rating IS 2
[x]foo_playlist_gen format
Format:
$if(%album artist%,%album artist%,%artist%)]|'('[%date%]')' [%album%]|$if(%album artist%,[[%disc%.][$num(%tracknumber%,2) - ] ]%artist% - $if2(%title%,%_filename_ext%),[[%disc%.][$num(%tracknumber%,2) - ] ]$if2(%title%,%_filename_ext%))
Sort: [x] Display
This will return every song that has a rating of 2, and displayed as
Artist>(Date) Album>Tracknumber - Song.
You can modify the format as you wish, i.e. just to display the artist subfolder.
mmm maybe i didn't eplained well, i wanted just 2 tracks for EACH artist, the 2 highest rated

in your code i think there is a "]" that shouldn't be there
jkwarras
May 27 2005, 09:07
QUOTE(khoma @ May 26 2005, 04:07 PM)
mmm maybe i didn't eplained well, i wanted just 2 tracks for EACH artist, the 2 highest rated

AFAIK, there's no way to limit the number of items in a subfolder (in this case the artist subfolder).
What you could do is to use the provided code and use as query this
NOT %rating% MISSING
and sort by %rating%
This will put the highest rated songs for every artist in the top of the artist subfolder. It's the closes t thing you could possibly do. You could always request to cwbowron to implement this.
QUOTE
in your code i think there is a "]" that shouldn't be there

Where? It works here
adrianmak
May 28 2005, 16:30
After I added songs into the playlist tree, how do I play them ?
I double-click the songs in playlist tree, nothing happened, no sound.
I am trying this plugin and I think it is great by the way.

I want to add a query that shows me which albums and artists have been added to my database. I want the tree to display only the artist and album once (something like [%artist%] [%album%]).
I managed to display all recently added tracks using a simple query, but I do not want to display all tracks from one album, just the album and artist once:
This is what I managed to get so far in the tree view:
Artist#1 - Album #1 - Track #1
Artist#1 - Album #1 - Track #2
Artist#1 - Album #1 - Track #3 and so on
Artist#2 - Album #1 - Track #1
Artist#2 - Album #1 - Track #2 and so on
This is what I want:
Artist#1 - Album #1
Artist#1 - Album #2
Artist#1 - Album #1 and so on
I am not so script savvy I guess

If anyone could help I would appreciate.
Thanks
kl33per
May 29 2005, 17:42
Query is: tracknumber IS 1 OR tracknumber IS 01
Format is: %album%|%title%
This is the best you'll do I think.
Thank you. It worked perfectly.
kockroach
May 29 2005, 19:18
I have finally spent some time with this component....and I love it!
Would it be possible to allow for TAGZ use in the Library Playlist field of the preferences? I would like to preserve the name of the node that I select, as it will allow me to use either Album or Single mode in Navigator (Column UI).
Basically, instead of using a generic term like "Playlist Tree" for my playlist name, I would like it to be %name%, which would then use the selected folder in the Playlist Tree as the name of the playlist created when I select that node.
I can do this in a round-about way by right-clicking my folder, choosing "playlist > new". But I would have to do that each time new songs are added.
Just a thought....if it can be done, I thank you in advance!
kockroach that's implemented in the latest version (1.6.3)
kockroach
May 29 2005, 20:10
I'm using the 1.4.17, which is the one listed as the latest stable version. I'll have to check out 1.6.3.
Edit: Thanks for pointing that out dano.....works like a charm!
Edit2: Two other questions.
1. Is it possible to use $if statements in the Label of a Folder/Query? I have a couple of folders that are used to display total number of artists, albums, tracks, etc. Instead of specifically adding in either %foldercount% or %itemcount% to the Label, I would like to have it do something like this:
If %foldercount% greater than 1, then show %foldercount%; if %foldercount% is less than 1 (that is 0), then show %itemcount%.
I have tried using the $if commands, but it always shows the whole string, so you actually see $if in the Label.
2. If a Folder/Query is set to No Browse, can you prevent it from being automatically being sent to the Libray Playlist? The folders listed above are only intended on showing stats of my database, so I don't want to create a playlist if I select that line. However, I would still like to automatically create playlists when selecting my dynamic queries.
Not a huge deal, but it would help clean up my Playlist Tree and the playlists that are generated. I've looked through the tutorial and through the preferences, and I can't seem to be able to do these two things.
Edit3: Figured out question #1. Didn't have $format($if.....
QUOTE(kl33per @ May 9 2005, 06:09 PM)
You can just list albums in the tree browser.
I'm sorry to quote such an old reply of you, but can you tell me how it's possible? (assuming that it will show no duplicates)
jkwarras
May 31 2005, 11:00
QUOTE(dano @ May 31 2005, 08:48 AM)
QUOTE(kl33per @ May 9 2005, 06:09 PM)
You can just list albums in the tree browser.
I'm sorry to quote such an old reply of you, but can you tell me how it's possible? (assuming that it will show no duplicates)
Just hide leafs nodes. It'll hide the tracks in the tree browser. I'm not sure if this is what you're asking
No. I thought with tree browser he meant the actual browser, and not the playlist tree with the queries.
I wanted to use the browser for some kind of winamp media library emulation, but it's impossible I gues.
Gemini
Jun 15 2005, 21:06
Not sure if this is more pertinent to database manipulation, but is there a way to link artists together to use in a query (without specifically creating a tag)? What I want to do is modify my "current artist" query to include results by artists which are related (user-created relations) but don't have the same %artist% tag.
jkwarras
Jun 16 2005, 05:27
QUOTE(Gemini @ Jun 15 2005, 07:06 PM)
Not sure if this is more pertinent to database manipulation, but is there a way to link artists together to use in a query (without specifically creating a tag)? What I want to do is modify my "current artist" query to include results by artists which are related (user-created relations) but don't have the same %artist% tag.
You could do that but only for the now playing track via $playing(). But I don't think it's possible to do that for non playing tracks. you coudl however request it to developper in the official forum.
SoulMan
Jun 20 2005, 14:59
Hello, I am insuccessfully trying to have a format like that :
$cut($if(%album artist%,#album artist#,#artist#),1)|
$if(%album artist%,#album artist#,#artist#)|
'('%date%') '%album%|[%disc%.]$num(%tracknumber%,2) - %title%
What i want, is a "First Letter/Artist/(date) - Album/Track - Title" display
Is it possible?
And if it is, please, what is the good syntax?
Hamallainen
Jun 20 2005, 15:24
QUOTE(SoulMan @ Jun 20 2005, 09:59 PM)
Hello, I am insuccessfully trying to have a format like that :
$cut($if(%album artist%,#album artist#,#artist#),1)|
$if(%album artist%,#album artist#,#artist#)|
'('%date%') '%album%|[%disc%.]$num(%tracknumber%,2) - %title%
What i want, is a "First Letter/Artist/(date) - Album/Track - Title" display
Is it possible?
And if it is, please, what is the good syntax?
Why do you use this character
# ?
Replace it by
% and it should work
jkwarras
Jun 20 2005, 15:31
QUOTE(Hamallainen @ Jun 20 2005, 01:24 PM)
Why do you use this character
# ?
Replace it by
% and it should work
It'd for multiple tags, i.e. %artist%=Snoop and %artist%=N.E.R.D., calling #artist# will return both as 'Snoop' and 'N.E.R.D." under a different subtree, calling %artist% will return a subtree 'Snoop N.E.R.D'.
SoulMan
Jun 20 2005, 15:49
Yes, that feature is very usefull, but i can't use it inside of if functions...
$cut(#artist#,1)|#artist#|'('%date%') '%album%|[%disc%.]$num(%tracknumber%,2) - %title%
works well!
Hamallainen
Jun 20 2005, 15:58
QUOTE(jkwarras @ Jun 20 2005, 10:31 PM)
QUOTE(Hamallainen @ Jun 20 2005, 01:24 PM)
Why do you use this character
# ?
Replace it by
% and it should work
It'd for multiple tags, i.e. %artist%=Snoop and %artist%=N.E.R.D., calling #artist# will return both as 'Snoop' and 'N.E.R.D." under a different subtree, calling %artist% will return a subtree 'Snoop N.E.R.D'.
Oh thanks for the info i didn t know about that
Sorry Soulman for the wrong info
SoulMan
Jun 26 2005, 01:53
No pb Hamallainen, so, someone knows if what i'm trying to do is possible?
And so, how to do that?
thank you.
adrianmak
Jun 26 2005, 07:30
for those albums with more than 1 CD, is it possibe to display like below
CODE
+-artist album
+CD1
+-01. title
+-02. title
+-03. title
+CD2
+-01. title
+-02. title
+-03. title
fabiospark
Jun 26 2005, 12:04
QUOTE(adrianmak @ Jun 26 2005, 03:30 PM)
for those albums with more than 1 CD, is it possibe to display like below
CODE
+-artist album
+CD1
+-01. title
+-02. title
+-03. title
+CD2
+-01. title
+-02. title
+-03. title
Just add a tag with the number of discs
adrianmak
Jun 27 2005, 02:36
QUOTE(fabiospark @ Jun 27 2005, 02:04 AM)
QUOTE(adrianmak @ Jun 26 2005, 03:30 PM)
for those albums with more than 1 CD, is it possibe to display like below
CODE
+-artist album
+CD1
+-01. title
+-02. title
+-03. title
+CD2
+-01. title
+-02. title
+-03. title
Just add a tag with the number of discs
What do you mean ? I'm using dynamic folder and how it can create CD1, CD2 dynamically
Crissaegrim
Jul 9 2005, 14:48
What's the query for "never played"? Right now, I have...
CODE
play_counter IS 0
Which returns nothing. I suspect the songs that has never been played don't
actually have PLAYCOUNT = 0 meta.
Also, what's the sort criteria for sort by artist, album, track number? I think default sorts it by artist, album, track title (0, A, B, C, D, etc.)
jkwarras
Jul 9 2005, 17:37
QUOTE(Crissaegrim @ Jul 9 2005, 12:48 PM)
What's the query for "never played"?
Try this.
CODE
play_counter MISSING
QUOTE(Crissaegrim @ Jul 9 2005, 12:48 PM)
Also, what's the sort criteria for sort by artist, album, track number?
And this should work...
CODE
%artist% %album% $num(2,%tracknumber%)
Crissaegrim
Jul 9 2005, 18:13
Sweet. Thanks, dude. Those work well.
SoulMan
Aug 20 2005, 01:40
Hello, I have some questions about format problems :
- I've tryed to use :
"$cut(#artist#,1)|#artist#|'('%date%') '%album%|[%disc%.]$num(%tracknumber%,2) - %title%"
The problem is that format don't work with artists with an ' in the name. What can I do?
These entryes are displayed as "[SYNTAX ERROR IN FORMATING TREE]"
- I've tryed to use :
"$if(%album artist%,$cut(#album artist#,1),$cut(#artist#,1))|$if(%album artist%,#album artist#,#artist#)|'('%date%') '%album%|[%disc%.]$num(%tracknumber%,2) - %title%"
But with this format I have just file having %artist% AND %album artist% tags in the result... i don't understand!
cyberrus
Aug 28 2005, 19:33
i've had the same problem and i solved it by changing sign ' to $char(8217) - in all pieces with ' in the artist name - first find all artists with ' and then use this script in masstager - "format value from other fields":
CODE
$replace(%artist%,$char(39),$char(8217))
SoulMan
Aug 29 2005, 03:30
Thank you a lot for this help, that work well.
And, for my other problem, the next foobar version, with tags associations : %artist% = $if3(%album artist%,%artist%...) my problem will be resolved.
So i have just to white to playlisttree ported on foobar 0.9
fabiospark
Aug 29 2005, 08:53
QUOTE(SoulMan @ Aug 29 2005, 11:30 AM)
So i have just to wait to playlisttree ported on foobar 0.9

I'm sorry for you (and for me too as I am a PLT dependent) but I think it will take a year or more:
1) the SDK is not out yet
2) the author of PLT is taken by other interests by now. I don't event think he is following the threads here or in his forum.
It would be nice instead if the album list authors would consider implementing some of the smarter devices PLT has in their own plugin.
But I'm afraid PLT has not many frieds among programmer because it eats up many resources; the opposite of the philosophy of FB itself.
Unfortunately, I built up so nice queries with PLT that I can't go back to Albumlist. Having a lot of multiple values fields (with jazz and classical I can't do without them) I'm forced (and quite happy) to stay with it even if the development and bug fixing stopped abruptly with the release of FB 0.9.
Hope I'm wrong.
mixderax
Aug 29 2005, 09:03
QUOTE(fabiospark @ Aug 29 2005, 04:53 PM)
QUOTE(SoulMan @ Aug 29 2005, 11:30 AM)
So i have just to wait to playlisttree ported on foobar 0.9

I'm sorry for you (and for me too as I am a PLT dependent) but I think it will take a year or more:
1) the SDK is not out yet
2) the author of PLT is taken by other interests by now. I don't event think he is following the threads here or in his forum.
It would be nice instead if the album list authors would consider implementing some of the smarter devices PLT has in their own plugin.
But I'm afraid PLT has not many frieds among programmer because it eats up many resources; the opposite of the philosophy of FB itself.
Unfortunately, I built up so nice queries with PLT that I can't go back to Albumlist. Having a lot of multiple values fields (with jazz and classical I can't do without them) I'm forced (and quite happy) to stay with it even if the development and bug fixing stopped abruptly with the release of FB 0.9.
Hope I'm wrong.
Maybe autoplaylist can at least help a bit
cwbowron
Aug 29 2005, 09:08
QUOTE(fabiospark @ Aug 29 2005, 09:53 AM)
I'm sorry for you (and for me too as I am a PLT dependent) but I think it will take a year or more:
1) the SDK is not out yet
2) the author of PLT is taken by other interests by now. I don't event think he is following the threads here or in his forum.
Playlist Tree *will* be updated as soon as the .9 SDK is released.
I read every post on the official playlist tree forum, as well as every post in this thread. I was working on another project (pspChess) which has reached a mature point and does not require much of my time. At this point however, it does not seem the most advantageous to add new features to PT when some of those features might be addressed in the finalized version of 0.9 or might make porting to 0.9 SDK more difficult when it is released.
fabiospark
Aug 29 2005, 11:34
Sorry to tease you... but it worked.
I'm glad to hear your other project is going on well.
And about PLTree, while waiting to the events, would you consider making a little bug fixing and a little adjustement too ? (if it really is little - I'm no programmer so I don't really know):
Bug fixing - when I drag a selection from the tree to a playlist, the scroll bar of the tree panel go down very fast when the pointer is passin on it;
Adjustement - can we have the option "Add to playlist" in the "double click action" list?
And can we have the options "Ctrl + doubleclick action" and "Shft + doubleclick action" too? (And the Add to playlist option in them too?).
Thanks.
P.S:
With all the queries I put on my tree panel, Foobar takes 40 secs to start. When you'll port the thing to 0.9, would you consider looking for a way to make the loading in the background with FB soon opened and playing?
Thanks for your time and work.
Bye, Fabio.
cwbowron
Aug 29 2005, 11:52
QUOTE(fabiospark @ Aug 29 2005, 12:34 PM)
Adjustement - can we have the option "Add to playlist" in the "double click action" list?
Add to Playlist should be equivalent to setting the action to "Send to Active" and turning off "Double Click Replace". Is there something I am missing?
ot: cwbowron, nice to hear from you! i love your component, great work ... can't wait for new versions.
fabiospark
Aug 30 2005, 14:07
QUOTE(cwbowron @ Aug 29 2005, 07:52 PM)
QUOTE(fabiospark @ Aug 29 2005, 12:34 PM)
Adjustement - can we have the option "Add to playlist" in the "double click action" list?
Add to Playlist should be equivalent to setting the action to "Send to Active" and turning off "Double Click Replace". Is there something I am missing?
When I'm selecting songs, building a playlist, I start with a doubleclick and I need "doubleclick replace" on to avoid having to clear or delete the active playlist. As I want to add further selections to the playlist, the only thing I have is "add to playlist" from the (second level) right click menu. You will agree with me that is quite inconvenient having to go to the config to uncheck the "double click replace" and then go back and make a doubleclick.
In fact, what I am missing most is a "Ctrl + double click" action whose list would include an "Add to playlist" option. As we have already been told many times, the tree view does not support multiple selections and this (action = send; ctrl + action = add; shft + action = anything else, maybe remove) could be a nice way to make the playlist building a quicker affair, I think.
Thanks.
Change of subject.
Is there a way to filter out things only when the content of two different fields matches (or when it doesn't)?
It seems that I can't achieve that in the playlist generator language so I wrote the format string below but that makes me carry with me the unwanted things too (the else value of the $if)
CODE
$if($stricmp(%__tempo%,%tempo%),matched,unmatched)|%album%|%title%
Don't you know a better way to do that?
Thanks again for your attention.
cwbowron
Aug 30 2005, 14:19
QUOTE(fabiospark @ Aug 30 2005, 03:07 PM)
In fact, what I am missing most is a "Ctrl + double click" action whose list would include an "Add to playlist" option. As we have already been told many times, the tree view does not support multiple selections and this (action = send; ctrl + action = add; shft + action = anything else, maybe remove) could be a nice way to make the playlist building a quicker affair, I think.
There is a hackish way to do multiple selections with the tree view. Control Click on something and it will become bold. (C-Click again and it will become unbold). You can do multiple selections by making stuff bold then selecting Bold... From the context menu and there are a few things you can do with the bolded items. (add to playlist, create new playlist, etc)
QUOTE
It seems that I can't achieve that in the playlist generator language so I wrote the format string below but that makes me carry with me the unwanted things too (the else value of the $if)
CODE
$if($stricmp(%__tempo%,%tempo%),matched,unmatched)|%album%|%title%
Don't you know a better way to do that?
I believe you could use "$stricmp(%__tempo%,%tempo%)" as your query, and leave the foo_playlistgen_ex button unchecked for your query.
It's been a while since I've done a non-playlist gen syntax query though.
jkwarras
Aug 30 2005, 18:06
He's alive! Alive!

Good to see you back dude.
Fractal_Mortality
Aug 30 2005, 19:59
After using Playlist Tree for awhile now.. I've come to live with any of the initial gripes that I had using it at first.
Except one...
Column Sorting in the Playlist Tree Browser..... would be really nice
...oh... and the ability to take away the embedded shortcuts ("M" to bring up menu, etc.)
I know you've probably heard these before CBOWRON... But I'm so picky.
Seriously though, such a good plugin. Thanks a lot for developing (and choosing to continue developing) it.
fabiospark
Aug 31 2005, 00:14
QUOTE
There is a hackish way to do multiple selections with the tree view. Control Click on something and it will become bold. (C-Click again and it will become unbold). You can do multiple selections by making stuff bold then selecting Bold... From the context menu and there are a few things you can do with the bolded items. (add to playlist, create new playlist, etc)
I think that the way I suggested (Ctrl + double click) is the most straightforward way to add to a playlist, as the plain doubleclick is to send to it.
With the way you mentioned I can't see the playlist content progress as I select nodes or leaves but I will see what I selected only when I trigger the final action.
But well, if you feel it's a waste of time adding it to the 0.8, at least consider to add this and the "shft + doubleclick = remove selected if present" when you'll port to 0.9, if possible.
For now, I can keep on without it.
P.S.
jkwarras, I was sure you would turn up here too!
cwbowron
Aug 31 2005, 08:19
RELEASE 1.6.4
option: CONFIG:process local shortcut keys
changed expansion level code to not need to refresh whole tree = faster
changed functionality of root/collapse to set_expansion(0)
Fractal_Mortality
Aug 31 2005, 16:24
QUOTE(cwbowron @ Aug 31 2005, 09:19 AM)
RELEASE 1.6.4
option: CONFIG:process local shortcut keys
changed expansion level code to not need to refresh whole tree = faster
changed functionality of root/collapse to set_expansion(0)
I.Love.You.
synth7
Aug 31 2005, 18:47
How do I create more top-level nodes? I can't drag anything above the one I have now.
TomGroove
Sep 1 2005, 08:41
Hi Folks, thinking about the following problem:
some Albums I have encoded lossy and lossless. I would like to list all Albums, and if MP3 and Flac exists, I would like to see only the Flac files.
Any idea before I reinvent the wheel ? I saw somewhere a discussion around this, but don't exactely remember....
Thx Tom
fabiospark
Sep 1 2005, 08:53
QUOTE(TomGroove @ Sep 1 2005, 04:41 PM)
Hi Folks, thinking about the following problem:
some Albums I have encoded lossy and lossless. I would like to list all Albums, and if MP3 and Flac exists, I would like to see only the Flac files.
Any idea before I reinvent the wheel ? I saw somewhere a discussion around this, but don't exactely remember....
Thx Tom
I think you should put "__codec IS flac" in the query window.
TomGroove
Sep 1 2005, 08:55
nope, this just lists than the flac files only... thx anyway...
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.