Help - Search - Members - Calendar
Full Version: foo_playlist_tree
Hydrogenaudio Forums > Hosted Forums > foobar2000 > 3rd Party Plugins - (fb2k)
Pages: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37
marcomk
I made some extensive tests on the "folder drop causes crash" problem. Actually, I couldn't reach a definite conclusion. As you said, size of the folder doesn't matter wink.gif .
I managed to obtain about twenty crashes playing around with (several) single folders containing just one album (about 10 mp3s, nothing else in the folder apart from a hidden windows .db file).

If I create a query, move the branches around, in the root, etc. then nuke the database, open foobar again and move a branch, I think I had a crash all the times. However, I had many other crashes I can't explain...

If you're not able to reproduce any crash, it is possible for you to post a sort of debug version of the plugin or make me able in some other ways to give you a more detailed log of the crashes? Let me know how I can help. wink.gif
Desman
Yeah! It works PERFECTLY now! No Unicode probs anymore!
Heaps of thanks for the awesome work!
cwbowron
QUOTE(jkwarras @ Dec 13 2004, 05:59 PM)
2) Add the possibility of query in this format
CODE
tag
instead of just
CODE
%tag%
. This is possible in album list, so I guess that it wont be too difficult to add  unsure.gif

An example of use: Let's take a file with the same tag %tag% but with different values:

%tag%=TagA
%tag%=TagB
%tag%=TagC

Display=%tag%|%artist%|%album%|%title%

This will display like this:

+TagA,TagB,TagC
---+'Artist'
-------+'Album'
-----------+'Title'

In Album list we can do this:

Display=tag|%artist%|%album%|%title%

This will display like this:

+TagA
---+'Artist'
-------+'Album'
-----------+'Title'
+TagB
---+'Artist'
-------+'Album'
-----------+'Title'
+TagC
---+'Artist'
-------+'Album'
-----------+'Title'

Thi smeans that the same file will appear in different subtrees.

Thanks.
*


I'm working on adding this functionality but I cannot do it without a designator for the query with the current method of populating queries. What I am thinking would be compromise that would allow meta queries for tags that might have different values by designating the tag in the format differently, using {tag} or #tag# or @tag@. I'm looking for suggestions for the designator. Any preferences?
jkwarras
QUOTE(cwbowron @ Dec 14 2004, 06:45 AM)
using {tag} or #tag# or @tag@.  I'm looking for suggestions for the designator.  Any preferences?
*

My vote goes to ...... #tag#! wink.gif
marcomk
QUOTE(cwbowron @ Dec 14 2004, 03:45 PM)
I'm working on adding this functionality but I cannot do it without a designator for the query with the current method of populating queries.  What I am thinking would be  compromise that would allow meta queries for tags that might have different values by designating the tag in the format differently, using {tag} or #tag# or @tag@.  I'm looking for suggestions for the designator.  Any preferences?
*


I don't know if it is easy or not, but maybe with a tag designator you may also overcome a limitation of the albumlist syntax, where you cannot use the expression 'tag' in a formula (es. $if(%genre%, genre, 'No genre')] doesn't work). Maybe something like #tag# will work?

BTW, # is all right. { is not easy to find on an Italian keyboard...
cwbowron
QUOTE(marcomk @ Dec 14 2004, 10:48 AM)
QUOTE(cwbowron @ Dec 14 2004, 03:45 PM)
I'm working on adding this functionality but I cannot do it without a designator for the query with the current method of populating queries.  What I am thinking would be  compromise that would allow meta queries for tags that might have different values by designating the tag in the format differently, using {tag} or #tag# or @tag@.  I'm looking for suggestions for the designator.  Any preferences?
*


I don't know if it is easy or not, but maybe with a tag designator you may also overcome a limitation of the albumlist syntax, where you cannot use the expression 'tag' in a formula (es. $if(%genre%, genre, 'No genre')] doesn't work). Maybe something like #tag# will work?

BTW, # is all right. { is not easy to find on an Italian keyboard...
*


I don't know if it will help with that, but I just uploaded the new version that supports meta tag queries with the #tag# format.

Let me know how it works.
marcomk
QUOTE(cwbowron @ Dec 14 2004, 04:54 PM)
Let me know how it works.
*


It works great! biggrin.gif

Thanks again wink.gif
jkwarras
QUOTE(cwbowron @ Dec 14 2004, 07:54 AM)
I don't know if it will help with that, but I just uploaded the new version that supports meta tag queries with the #tag# format.

Let me know how it works.
*


I love you wub.gif tongue.gif

Seriously, it works great. I'm using this i.e.
CODE
$if(%styles%,#styles#,'()')


Thanks you very much for your work.
cwbowron
I just uploaded a new version that deals with one of my pet peeves... now when you do a search, it will keep expanding branches as you find the items you want, but when you are done searching it will restore the tree to the previous state, and only the branches necessary to see the final search result will remain expanded.

it will also turn the background red when a match cannot be found to a search item and restore it when you close the search box...
marcomk
What about the crashes? How can we give you more detailed informations about the problem?

BTW, I made another bitmap with GANT icons with 16 colors (looks horrible, it is just for a try) and still the colors are not displayed properly. So the problem is not in the color depth... I will upload the new bitmap in the upload section in case you want to test it.
cwbowron
QUOTE(marcomk @ Dec 14 2004, 03:53 PM)
What about the crashes? How can we give you more detailed informations about the problem?
*


If you get a crash, see if you can whittle it down to a certain situation that is causing the problem and get the crash to repeat... let me know what situations you are seeing crashes in...
cwbowron
I just uploaded a new version that fixes a couple problems related to the movement of the window. Previously if you moved the foobar window with the search box activated in playlist tree the search box would not get moved with it...

I also added a new feature that I am still working on... I added an option under the Components->Playlist Tree->Explorer menu to launch a explorer window have it dock next to the playlist tree. I still dont know how to move it along with the window but I'm working on that... This is a nice feature if you are building a playlist manually... I added explorer as a global hotkey which makes it easier to browse my collection... I also added a config menu option to specifiy the default directory to start at...

I may add the option to the right click menu in the tree to open the folder that a file is in...
marcomk
QUOTE(cwbowron @ Dec 15 2004, 04:21 PM)
I also added a new feature that I am still working on... I added an option under the Components->Playlist Tree->Explorer menu to launch a explorer window have it dock next to the playlist tree... This is a nice feature if you are building a playlist manually...
*


Hi, I was thinking about another feature that may help to build playlists manually (but I don't know how difficult it is...).
Could you make it possible that a dynamic folders can be set to point a specific playlist file (.fpl, .m3u)?
The Query, in this case, may appear as something like: $file(d:\Music \Playlists\playlist.fpl).

With this feature, you could send a playlist to the main window, edit it as you like, saving it to a playlist file and then, if you refresh the query, you can still have the modified playlist in your dynamic folder.

It would be necessary that the folder could point to standard playlist files (.fpl, m3u) because it is not possible to save .col files from the main window.
phwip
QUOTE(marcomk @ Dec 15 2004, 05:10 PM)
Hi, I was thinking about another feature that may help to build playlists manually (but I don't know how difficult it is...).
Could you make it possible that a dynamic folders can be set to point a specific playlist file (.fpl, .m3u)?
The Query, in this case, may appear as something like: $file(d:\Music \Playlists\playlist.fpl).
*

I really like this idea. If it's possible then it would be great.
cwbowron
QUOTE(phwip @ Dec 15 2004, 12:14 PM)
QUOTE(marcomk @ Dec 15 2004, 05:10 PM)
Hi, I was thinking about another feature that may help to build playlists manually (but I don't know how difficult it is...).
Could you make it possible that a dynamic folders can be set to point a specific playlist file (.fpl, .m3u)?
The Query, in this case, may appear as something like: $file(d:\Music \Playlists\playlist.fpl).
*

I really like this idea. If it's possible then it would be great.
*


I'll put my best people on it.
jkwarras
->bug report:

When using extended playlist generator format, MISSING value doesn't seems to be supported. i.e. Query=rating MISSING doesn't return any value. Using same syntax in the EPG works and return hundreds of songs.

->feature/suggestion request (I'm always asking things, please slap me if I'm a PITA wink.gif ):

1) Add for queries in extended playlist generator format the possibility of regenerate it (not refreshing) via right-click menu. Like the component>playlist tree>refresh all queries but on the right-click menu and it'll regenerate all queries for the subtrees where this has been right-clicked. It's very useful if you've several queries (for ex. random 'new tracks', 'rock tracks', 'low-tempo tracks' etc...) as subfolders aof a static folder in order to generate a mixed playlist. i.e.

+Mixed
---+Random 10 New tracks (extended playlist generator format)
---+Random 10 Rock tracks (extended playlist generator format)
---+Random 10 Low-tempo tracks (extended playlist generator format)
----[...]

If you can right-click on 'Mixed' (static folder) and regenerate all queries you can have a random playlist for this multiple values in just one click! cool.gif

2) I guess that this is an overkill, but here it goes... Possibility to add another query in extended playlist generator format, just after the first one and run it after it. i.e. Creating a '7 random tracks from 50 most played songs'

step 1:
New Query> Label: '7 random Most played songs':
Query=play_counter GREATER 0 [EGC format]
Display=$if2(%album artist%,%artist%) - %album% - %title%
Max=50
Max criteria=$num(%play_counter%,4) |x| Reverse (I know that custom sort doesn't work in playlist tree, but when it'll work in the future wink.gif ).

This will create (as I said when custom sort will work) the most 50 played tracks dynamic folder.

step 2:
If I could enter right after that query this one (searching current results) in the same edit window:
Query=play_counter GREATER 0 [EGC format]
Display=$if2(%album artist%,%artist%) - %album% - %title%
Max=7
Max criteria=$rand()


Someone gets the idea? Appliying it with request number 1) you can make a very complex smart playlist with a click! Yum! Right now you can do it, but it requires a lot of steps.

Well, that's it for today. Thanks again for all your work, this is one of the best fb2k components I've ever seen.
cwbowron
QUOTE(cwbowron @ Dec 15 2004, 12:21 PM)
QUOTE(phwip @ Dec 15 2004, 12:14 PM)
QUOTE(marcomk @ Dec 15 2004, 05:10 PM)
Hi, I was thinking about another feature that may help to build playlists manually (but I don't know how difficult it is...).
Could you make it possible that a dynamic folders can be set to point a specific playlist file (.fpl, .m3u)?
The Query, in this case, may appear as something like: $file(d:\Music \Playlists\playlist.fpl).
*

I really like this idea. If it's possible then it would be great.
*


I'll put my best people on it.
*


Here's what I did... from the readme...

$drop()
If you use the $drop() command in a dynamic folder everytime you refresh that query it will act as if you dropped that file or directory on that node. Good for creating dynamic folders that get their content from an external m3u file or from directory.

Usage:
$drop(C:\music\B\Bob Dylan)
$drop(C:\music\_Playlists\Bob Dylan.m3u)

The only is that if you add files and stuff to the node inside of playlist tree those items will be lost unless you save it yourself... (i.e. playlist tree will only read from the $drop location, never write to it)
cwbowron
QUOTE(jkwarras @ Dec 15 2004, 12:43 PM)
2) I guess that this is an overkill, but here it goes... Possibility to add another query in extended playlist generator format, just after the first one and run it after it. i.e. Creating a '7 random tracks from 50 most played songs'

step 1:
New Query> Label: '7 random Most played songs':
Query=play_counter GREATER 0 [EGC format]
Display=$if2(%album artist%,%artist%) - %album% - %title%
Max=50
Max criteria=$num(%play_counter%,4) |x| Reverse (I know that custom sort doesn't work in playlist tree, but when it'll work in the future  wink.gif ).

This will create (as I said when custom sort will work) the most 50 played tracks dynamic folder.

step 2:
If I could enter right after that query this one (searching current results) in the same edit window:
Query=play_counter GREATER 0 [EGC format]
Display=$if2(%album artist%,%artist%) - %album% - %title%
Max=7
Max criteria=$rand()

Well, that's it for today. Thanks again for all your work, this is one of the best fb2k components I've ever seen.
*


I'm all for overkill...

First, have you tried the custom sort lately? I'm not sure if its working or not... I was seeing an issue where it wouldnt work the first refresh, but after that it would...

Second... I hear what you are saying about the second suggestion... but I think I have an even better solution...

what if i were to introduce a function say $node() that grabbed all the contents of another node in the tree? Then you could build the first query as its own thing and then create a second query that grabs the contents of that node and randomly gets only 7 of the items.

So you're queries would be:

step 1:
New Query> Label: '50 Highest':
Query=play_counter GREATER 0 [EGC format]
Display=$if2(%album artist%,%artist%) - %album% - %title%
Max=50
Max criteria=$num(%play_counter%,4) |x| Reverse

step 2:
New Query> Label: "cwbowron is the greatest programmer in the world"
Query=$node(50 Highest)
Max=7
Max criteria=$rand()
marcomk
QUOTE(cwbowron @ Dec 15 2004, 07:02 PM)
Here's what I did... from the readme...

$drop()
  If you use the $drop() command in a dynamic folder everytime you refresh that query it will act as if you dropped that file or directory on that node. Good for creating dynamic folders that get their content from an external m3u file or from directory.

Usage:
$drop(C:\music\B\Bob Dylan)
$drop(C:\music\_Playlists\Bob Dylan.m3u)
*


I write a post, go and have a snack, when I came back the feature is ready and cwbowron is actually working on the next one. Amazing!!!!

QUOTE(cwbowron @ Dec 15 2004, 07:14 PM)
New Query> Label: "cwbowron is the greatest programmer in the world"


If not the greatest, the quickest. biggrin.gif
marcomk
QUOTE(cwbowron @ Dec 15 2004, 07:02 PM)
Usage:
$drop(C:\music\B\Bob Dylan)
$drop(C:\music\_Playlists\Bob Dylan.m3u)
*


It's great, works with .m3u and .fpl!!!! smile.gif However I think there is a small bug in the display format...

No matter what I write in the display string in the dynamic folder window, I get the results according to the file display format in general preferences...
cwbowron
QUOTE(marcomk @ Dec 15 2004, 02:43 PM)
QUOTE(cwbowron @ Dec 15 2004, 07:02 PM)
Usage:
$drop(C:\music\B\Bob Dylan)
$drop(C:\music\_Playlists\Bob Dylan.m3u)
*


It's great, works with .m3u and .fpl!!!! smile.gif However I think there is a small bug in the display format...

No matter what I write in the display string in the dynamic folder window, I get the results according to the file display format in general preferences...
*


Yes, I hadnt thought about that... I just uploaded a new version that somewhat fixes this... in the latest version files will display according to the format string, but it wont break them down into subfolders and stuff like a normal query will... but you can specify the way it actually displays the file.... I'll look into this a bit more....

... and... <drum roll>...

I added recursive queries...

From the readme...

$node()
You can grab the contents of another query or folder in a query using the $node(label) command. If doesnt support any other functions but it can be used to build nested queries. (i.e. you can't say "$node(A) OR $node(B)" yet, but you can say "$node(A) artist HAS Dylan")

If you have parenthesis in the folder name its going to break.

Here's an example

Query1:
Label: Acoustic
Query: album HAS acoustic OR album HAS unplugged OR title HAS acoustic
[x] foo_playlist_gen format

Query2:
Label: Foo
Query: $node(Acoustic) artist HAS Dylan
[x] foo_playlist_gen format

Foo should give you all the Bob Dylan songs that are in the Acoustic node.
hotzenpl0tz
I have been trying to get the following code I used in my Album List to work with this plugin:

CODE

$if(%various%,'- - - VARIOUS ARTISTS - - -',$if2($left(%album artist%,1),$if2($left(%artist%,1),'- - -')))|$if(%various%,$if2(%album%,)$if2('  ['%date%']',),$if2(%album artist%,$if2(%artist%,'- - - Missing Tags - - -')))|$if(%various%,$if($or(%disc%,%discname%),$if2('Disc '%disc%,)$if2(' '''%discname%'',),$num(%tracknumber%,2)' - '$if2(%artist%' - ',)%title%),$if(%singletrack%,'>  '%title%,$if2('['%date%']  ',)$if2(%album%,)))|$if(%various%,$if($or(%disc%,%discname%),$num(%tracknumber%,2)' - '%artist%' - '%title%),$if(%singletrack%,,$if($or(%disc%,%discname%),$if(%disc%,'Disc '%disc%)$if(%discname%,' '''%discname%''),$num(%tracknumber%,2)$if(%album artist%,' - '%artist%)' - '%title%)))|$if(%various%,,$if(%singletrack%,,$if($or(%disc%,%discname%),$num(%tracknumber%,2)$if(%album artist%,' - '%artist%)' - '%title%)))


This code in the album list sorted my Albums by the criteria:
Letter of the alphabet, Artist, album

For example:

+a
+b
+c
[-]d
+dude
+dude2
[-]dude3
album1
album2
+e

I tried to use the same code in this plugin, but it didn't work. Could somebody give me a hint what I have to change to get similar behaviour ?


EDIT: It DOES work, I somehow mixed up some of the terms used in the plugin, nevermind.
The Link
I use following query: "%_directoryname%" IS Misc OR %__replaygain_album_gain% IS MISSING OR singlefile IS yes

Could it be that if several conditions connected with "or" are positive the file gets displayed more than once in the playlist tree (same number as positive conditions)? With this query I get almost every file displayed twice.

Also when dragging a node/query into the playlists panel I get a crash. The redrawing/stealing focus problem I described earlier isn't resolved for me either.

Otherwise this plugin is getting better and better with an amazing development speed. smile.gif

Regards,
The Link

edit: I'm getting every title displayed twice now. So it is not only the query I described above and my guess must be wrong, too.

edit2: Files with embedded cue sheet seem to be handeled correctly (besides the incorrect total filesize)
cwbowron
QUOTE(cwbowron @ Dec 15 2004, 03:12 PM)
QUOTE(marcomk @ Dec 15 2004, 02:43 PM)
QUOTE(cwbowron @ Dec 15 2004, 07:02 PM)
Usage:
$drop(C:\music\B\Bob Dylan)
$drop(C:\music\_Playlists\Bob Dylan.m3u)
*


It's great, works with .m3u and .fpl!!!! smile.gif However I think there is a small bug in the display format...

No matter what I write in the display string in the dynamic folder window, I get the results according to the file display format in general preferences...
*


Yes, I hadnt thought about that... I just uploaded a new version that somewhat fixes this... in the latest version files will display according to the format string, but it wont break them down into subfolders and stuff like a normal query will... but you can specify the way it actually displays the file.... I'll look into this a bit more....
*


Ok, I fixed it... Now it will use the display format you specify in the query edit box, unless you specify %default% in which case it will use the same format that it would if you had dropped it from explorer.
cwbowron
QUOTE(The Link @ Dec 15 2004, 03:49 PM)
edit: I'm getting every title displayed twice now. So it is not only the query I described above and my guess must be wrong, too.
*


Any chance the files are in your database twice? maybe you've moved them around and both locations are still in the database?
The Link
QUOTE(cwbowron @ Dec 15 2004, 10:19 PM)
QUOTE(The Link @ Dec 15 2004, 03:49 PM)
edit: I'm getting every title displayed twice now. So it is not only the query I described above and my guess must be wrong, too.
*


Any chance the files are in your database twice? maybe you've moved them around and both locations are still in the database?
*


No. Albumlist panel also shows them only once.
jkwarras
QUOTE(cwbowron @ Dec 15 2004, 12:12 PM)
... and... <drum roll>...

I added recursive queries...

From the readme...

$node()
You can grab the contents of another query or folder in a query using the $node(label) command.  If doesnt support any other functions but it can be used to build nested queries.  (i.e. you can't say "$node(A) OR $node(B)" yet, but you can say "$node(A) artist HAS Dylan")
*

You've become my God smile.gif Thanks, and how we say in my mother tongue 'ˇMuchas gracias!'. It's working great, I can make a smart playlist calling other nodes in just one click! blink.gif smile.gif smile.gif smile.gif blink.gif

Oh, and you've also added the refresh option, this is amazing. I refresh and 'voila' a new playlist is ready.

BTW, sort do work, I didn't really get how this worked..I thought that this means the way it display in the tree not the way it sorts the query.

The only thing I miss, but this is just pure PITA, it's the ability to set a custom sorting format (like foo_custom_sort plugin) calling a custom format if we send a tree/folder to a new playlist. This is not important at all since I just have to sort the playlist with the Custom Sort plugin smile.gif

Dude, you've make me a happy man smile.gif Mil gracias.

Edit: MISSING value in extended playlist generator format query still doesn't work unsure.gif
cwbowron
QUOTE(jkwarras @ Dec 15 2004, 05:36 PM)
BTW, sort do work, I didn't really get how this worked..I thought that this means the way it display in the tree not the way it sorts the query.

The only thing I miss, but this is just pure PITA, it's the ability to set a custom sorting format (like foo_custom_sort plugin) calling a custom format if we send a tree/folder to a new playlist. This is not important at all since I just have to sort the playlist with the Custom Sort plugin smile.gif

Dude, you've make me a happy man  smile.gif Mil gracias.

Edit: MISSING value in extended playlist generator format query still doesn't work  unsure.gif
*


MISSING should work now... I had been compiling against the foo_playlistgen included in the SDK, but I downloaded the latest (as far as I could tell) version of foo_playlistgen_ex and compiled against that and now it looks like MISSING works...

The way the sorting stuff works right now is that the criteria is only used for picking out the first x entries... the sorting is done according to the same criteria as sorting a normal folder... would it be better if I just sort according to the same criteria as picking out the first x entries?

I'm pretty sure the max number of entries and sorting criteria isnt saved as of now, but its on my list of things to do soon...
marcomk
QUOTE(cwbowron @ Dec 16 2004, 01:10 AM)
... the sorting is done according to the same criteria as sorting a normal folder... would it be better if I just sort according to the same criteria as picking out the first x entries?
*


Well, I think so. The extended playlist generator scheme seems very logical to me.
If you want to pick your "100 Top rated" or your "100 Most Played", it seems pretty obvious to me that you want to put your top rated or most played on top... It is not very handy to sort all your dynamic folder according to just one general rule...

BTW, I think that there is something broken in your latest version. If I tried to add some dynamic folders with a $drop function but I got some weird results... The dynamic folder disappeared, tree was messed up, etc.
cwbowron
QUOTE(marcomk @ Dec 15 2004, 07:32 PM)
QUOTE(cwbowron @ Dec 16 2004, 01:10 AM)
... the sorting is done according to the same criteria as sorting a normal folder... would it be better if I just sort according to the same criteria as picking out the first x entries?
*


Well, I think so. The extended playlist generator scheme seems very logical to me.
If you want to pick your "100 Top rated" or your "100 Most Played", it seems pretty obvious to me that you want to put your top rated or most played on top... It is not very handy to sort all your dynamic folder according to just one general rule...

BTW, I think that there is something broken in your latest version. If I tried to add some dynamic folders with a $drop function but I got some weird results... The dynamic folder disappeared, tree was messed up, etc.
*


I just uploaded a version that should fix this...

I also fixed it so the queries should be sorted according to the criteria in the max criteria , if its there.
The Link
I sorted my problem with titles appearing twice out: It was for some part my fault and to another part foo_playlisttree's fault. I got Database entries "I:\Audio\Artist\Album" and "I:\Audio\\Artist\Album" where the second doesn't really exist. I think this entry was created either when I entered "I:\Audio\" in the "explorer directory" field or when I created a query "$drop(I:\Audio)". "I:\Audio" is also my Database directory.

Regards,
The Link
phwip
QUOTE(cwbowron @ Dec 15 2004, 06:02 PM)
$drop()
  If you use the $drop() command in a dynamic folder everytime you refresh that query it will act as if you dropped that file or directory on that node. Good for creating dynamic folders that get their content from an external m3u file or from directory.
*

Thank you very much for adding this. One question: when I use $drop with an m3u (or fpl) file I would like it to display the tracks in the order they appear in the m3u file. This is what happens if I actually drop the m3u from Windows Explorer. But with $drop they are sorted according to the query format field. Is there any way to achieve this? I have compilation m3us with the tracks in the order I want to listen to them, not based on anything in the tags such as track number, artist or title.
anza
I'd love to see the "limit to X" options of foo_playlistgen_ex in this one. That way I could easily make playlists like "Random hour" or "Random 128 megs of files".
cwbowron
QUOTE(phwip @ Dec 16 2004, 05:21 AM)
QUOTE(cwbowron @ Dec 15 2004, 06:02 PM)
$drop()
  If you use the $drop() command in a dynamic folder everytime you refresh that query it will act as if you dropped that file or directory on that node. Good for creating dynamic folders that get their content from an external m3u file or from directory.
*

Thank you very much for adding this. One question: when I use $drop with an m3u (or fpl) file I would like it to display the tracks in the order they appear in the m3u file. This is what happens if I actually drop the m3u from Windows Explorer. But with $drop they are sorted according to the query format field. Is there any way to achieve this? I have compilation m3us with the tracks in the order I want to listen to them, not based on anything in the tags such as track number, artist or title.
*


I just uploaded a new version that does this.

From the readme.txt:
QUOTE
--- Query Sorting ---

Queries are sorted to according the the criteria entered in the "Sort Criteria"
box.  Queries generated from the the $drop() command will not be sorted if
if the display format is set to %default%.  In that case they will show up
the same way as if they had been dropped from explorer, etc.  If you want
$drop() to format/sort files differently, enter the criteria in the format box
and the sort criteria box.
phwip
QUOTE(cwbowron @ Dec 16 2004, 03:03 PM)
Queries are sorted to according the the criteria entered in the "Sort Criteria"
box.  Queries generated from the the $drop() command will not be sorted if
if the display format is set to %default%.  In that case they will show up
the same way as if they had been dropped from explorer, etc.  If you want
$drop() to format/sort files differently, enter the criteria in the format box
and the sort criteria box.
*


Thanks. I like this a lot. One thing doesn't seem to be quite as I expected. If I put %title% in the format box and %default% in the sort box I would expect to see the tracks from the m3u in the order they appear in the m3u file, but only the titles listed. This is almost the case but it seems to swap the first track with one from somewhere in the middle of the playlist.
cwbowron
QUOTE(phwip @ Dec 16 2004, 11:15 AM)
QUOTE(cwbowron @ Dec 16 2004, 03:03 PM)
Queries are sorted to according the the criteria entered in the "Sort Criteria"
box.  Queries generated from the the $drop() command will not be sorted if
if the display format is set to %default%.  In that case they will show up
the same way as if they had been dropped from explorer, etc.  If you want
$drop() to format/sort files differently, enter the criteria in the format box
and the sort criteria box.
*


Thanks. I like this a lot. One thing doesn't seem to be quite as I expected. If I put %title% in the format box and %default% in the sort box I would expect to see the tracks from the m3u in the order they appear in the m3u file, but only the titles listed. This is almost the case but it seems to swap the first track with one from somewhere in the middle of the playlist.
*


%default% goes into the format box... it doesnt do anything in the sort box... queries in which the format is %default% no sorting is done...
phwip
QUOTE(cwbowron @ Dec 16 2004, 04:28 PM)
%default% goes into the format box... it doesnt do anything in the sort box... queries in which the format is %default% no sorting is done...
*

That won't help me if I want default sort order but only the title displayed then, because %default% in the format box includes the artist in the track display.

But never mind, because I've just found that putting %title% in the format box and leaving the sort box empty now sorts in the order of the m3u file, which is a change from how it worked before but is exactly what I wanted smile.gif . So I don't need to use %default% anyway now.

Thanks for all your hard work on this component.
phwip.
cwbowron
QUOTE(anza @ Dec 16 2004, 09:41 AM)
I'd love to see the "limit to X" options of foo_playlistgen_ex in this one. That way I could easily make playlists like "Random hour" or "Random 128 megs of files".
*


Done.

What I've done is added radio buttons that allow you to select tracks/minutes/megs for the maximum...

it would have been done sooner but i was issues with releasing handles that i hadn't actually created and that was giving me issues...
marcomk
QUOTE(cwbowron @ Dec 16 2004, 04:03 PM)
QUOTE
--- Query Sorting ---

Queries are sorted to according the the criteria entered in the "Sort Criteria"
box.  Queries generated from the the $drop() command will not be sorted if
if the display format is set to %default%.  In that case they will show up
the same way as if they had been dropped from explorer, etc.  If you want
$drop() to format/sort files differently, enter the criteria in the format box
and the sort criteria box.

*


Hi,

I have to say I'm very happy with this plugin as it seems I can do whatever I'd have liked to do with a media library. Thank you very much, cwbowron.... smile.gif
I just want to discuss some little details...

Sorting works perfectly now. However, is it intuitive enough for new users?

I think there are three main ways in which users want to sort their files.
1. Most common way is to sort according to display format. Users want to see A on top and Z at the bottom.
2. Second way is custom sort: whatever display you may have, you want to sort by rating, play_conter, ecc.
3. Third is no sorting, which is very useful when you drop playlists. Not very common, though.

1. I think default sorting (i.e. when you leave the sorting field empty) should be "sort according to display format". It's the most common and expected way.
2. Custom sort is easy. You just have to insert a string in the sorting field.
3. If you want to drop a playlist and you want no sorting, I think the most logical way is to insert a tag like %no sorting% in the sort field.
(however, we could also have 1. %display% 2. <custom string> 3. empty)

At the moment, if you leave the sort field empty there is no sorting. If you want to sort by display, you have to copy your display string (often very long) in the sort field. It's not a big deal, but I don't know if it's the best option.

What I find a rather confusing is to insert the %default% in the format field to have a default sorting. I'd rather use %default% in format field for default format and %default% in sort field for %default% (no) sorting.

I want to make it clear, I'm very happy with the plugin. I'm just discussing little details. wink.gif

EDIT: This is another option to make the whole thing more clear.

Sorting: None (o) by Display (o) Custom (o) ----------------------------------

(i.e. three radio buttons plus a field box)
cwbowron
QUOTE(marcomk @ Dec 16 2004, 06:57 PM)
Sorting:     None (o) by Display (o) Custom (o) ----------------------------------

(i.e. three radio buttons plus a field box)
*


I just uploaded a new version that implements this...
metal_termite
What is the device path, and explorer path?
filon
In my oppinon, you should change the "%size%" formatting to display "MB", and "GB" instead of "megs" and "gigs". I just can't stand all the megs and gigs in the playlist tree. You could add another keyword for that.
jkwarras
QUOTE(metal_termite @ Dec 16 2004, 11:09 PM)
What is the device path, and explorer path?
*

Device=your mp3 player/usb etc... [external HDD]
Explorer=Your music folder, useful if you create playlist manually.
cwbowron
QUOTE(filon @ Dec 17 2004, 04:01 AM)
In my oppinon, you should change the "%size%" formatting to display "MB", and "GB" instead of "megs" and "gigs". I just can't stand all the megs and gigs in the playlist tree. You could add another keyword for that.
*


Or I could add another keyword to implement the way you would like to see it...

which is what i just did...

CODE

 Example of size tags:
 %size%   100 megs  10 gigs
 %size_abbr%  100 MB   10 GB
 %size_abb%  100 M   10 G
 %size_raw%  100   102400  
filon
QUOTE(cwbowron @ Dec 17 2004, 06:44 AM)
QUOTE(filon @ Dec 17 2004, 04:01 AM)
In my oppinon, you should change the "%size%" formatting to display "MB", and "GB" instead of "megs" and "gigs". I just can't stand all the megs and gigs in the playlist tree. You could add another keyword for that.
*


Or I could add another keyword to implement the way you would like to see it...

which is what i just did...

CODE

 Example of size tags:
 %size%   100 megs  10 gigs
 %size_abbr%  100 MB   10 GB
 %size_abb%  100 M   10 G
 %size_raw%  100   102400  

*


Yeah, that would be fine. I would prefer one of the others to be deafult and make %size% as %size_coll% or someting like that, but that what you written looks good anyway.
The Link
Just wanted to say that I solved my problems regarding playlisttree taking focus when starting fb2k and the redrawing glitch. I just removed the component, started foobar to overwrite the playlist tree configs, then readded foo_playlisttree and now the problem seems to be gone. smile.gif

One thing that is not resolved for me is the crashing when dropping items from the playlisttree panel into the playlists panel. This is an important feature imho and it works perfectly with the albumlist panel.

Regards,
The Link
cwbowron
QUOTE(The Link @ Dec 17 2004, 12:38 PM)
Just wanted to say that I solved my problems regarding playlisttree taking focus when starting fb2k and the redrawing glitch. I just removed the component, started foobar to overwrite the playlist tree configs, then readded foo_playlisttree and now the problem seems to be gone.  smile.gif

One thing that is not resolved for me is the crashing when dropping items from the playlisttree panel into the playlists panel. This is an important feature imho and it works perfectly with the albumlist panel.

Regards,
The Link
*


If you can, see if you can figure out if it is a particular file or folder that is causing the problem. I don't have issues with this and I'm thinking maybe its something in the filename or path that is the culprit... if you can help me pinpoint it it will be easier to fix...
cwbowron
QUOTE(filon @ Dec 17 2004, 12:07 PM)
Yeah, that would be fine. I would prefer one of the others to be deafult and make %size% as %size_coll% or someting like that, but that what you written looks good anyway.
*


Or you could be happy that I gave you the option to display it how you want and be done with it.
koach
Hi. I've just started using this plugin, it's very nice. especially dynamic query function really rocks!

I would like to make a request about double click action.

usually I use manual query refresh mode because it takes loads of time to start up fb2k if using auto refresh with some query folders.
Since it doesn't remember songs loaded last time in query folders between sessions, to send them to the playlist view, I have to refresh those folders from context menu every time before sending.
So I would like to be able to do that with single action. Adding something like "send to playlist after refreshing" to double click actions would be very handy for me.

Hope this makes sense...
filon
QUOTE(cwbowron @ Dec 17 2004, 10:06 AM)
QUOTE(filon @ Dec 17 2004, 12:07 PM)
Yeah, that would be fine. I would prefer one of the others to be deafult and make %size% as %size_coll% or someting like that, but that what you written looks good anyway.
*


Or you could be happy that I gave you the option to display it how you want and be done with it.
*


Sure. See "Yeah, that would be fine." and "but that what you written looks good 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.
Invision Power Board © 2001-2008 Invision Power Services, Inc.