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
cwbowron
QUOTE
Release 2.0.10
Bug Fixes
* sort AFTER trimming - allows you to do a random album or mix of songs...

New Features
* properly nest @drops containing playlists
* set edge style on search box
* custom selection text colors
* added @hidden3 that hides leaves in the immediate folder (make sure @hidden3 is followed by a space)
* root/Export (All) and root/Export (Visible) exports to text file.
* allow search for nodes (example: %_overallindex% IS 50)
gob
thanks for the update. this version fixed the issue i had with files not in the library. it now shows the complete tree with all of the files in the specified directory. it also shows the non-audio files. im not sure if this is intended, but if you dont want to see them you can make the query more specific.
thanks for looking into that.

edit: the non-audio files only show with the @default format. strings works fine for the conversion.
Generalverdacht
i miss something:

something like "%artist% MISSING" doesnt work for me since the new version, what am i doing wrong?
cwbowron
QUOTE
Release 2.1.0
New Features
* split track finder into its own component.
Bug Fixes
* removed +/- in parents of hidden nodes/leaves

kockroach
Hey cwbowron,

I am working on converting over to fb2k 0.9.2, and I am having a little problem with foo_playlist_tree 2.1.1. Still trying to get used to the changes from PLT when it was in 0.8.3, but I love the new look.

I have been experiencing somewhat random losses of queries or folders in my PTS file. I actually just discovered at least one reproducible event that results in a change in my PTS file.

If I happen to switch views in Columns UI (View>Layout>... or from the "Presets" in the Columns UI preferences), when I switch back, there are Queries or Folders missing from the bottom of my Play List Tree.

Before closing fb2k, I open the PTS file, because the file changes on the switch back to the previous view. The queries/folders that are missing are truly cut from the file. However, when I exit out of fb2k, then open the PTS file, the queries/folders that were missing are back. However, there is now additional text added into the file right at the point in which the queries/folders were originally removed. This additional text causes all queries/folders below to be ignored (obviously because of incorrect formatting).

If you need me to, I can post the original PTS files, the one that is generated after switching Columns UI views, and the final PTS after closing fb2k.

Also, does Playlist Tree not allow Unicode characters now? I had a couple of queries that were rating based, and they were set to show Unicode characters for the nodes in the query (like one star, twos stars, etc.). When I did some editing of the PTS file by hand, it would not function if saved in any of the Unicode format options, I had to use ANSI for it to work.

Thanks,
kockroach

Edit: After adding another panel onto my current Columns UI view, I find that this also caused some of the queries/folders to be trimmed from the end of my PTS file. Not sure what is happening here. Has anyone else seen this?
gob
QUOTE(kockroach @ Jun 10 2006, 10:09) *

Hey cwbowron,

I am working on converting over to fb2k 0.9.2, and I am having a little problem with foo_playlist_tree 2.1.1. Still trying to get used to the changes from PLT when it was in 0.8.3, but I love the new look.

I have been experiencing somewhat random losses of queries or folders in my PTS file. I actually just discovered at least one reproducible event that results in a change in my PTS file.

If I happen to switch views in Columns UI (View>Layout>... or from the "Presets" in the Columns UI preferences), when I switch back, there are Queries or Folders missing from the bottom of my Play List Tree.

Before closing fb2k, I open the PTS file, because the file changes on the switch back to the previous view. The queries/folders that are missing are truly cut from the file. However, when I exit out of fb2k, then open the PTS file, the queries/folders that were missing are back. However, there is now additional text added into the file right at the point in which the queries/folders were originally removed. This additional text causes all queries/folders below to be ignored (obviously because of incorrect formatting).

If you need me to, I can post the original PTS files, the one that is generated after switching Columns UI views, and the final PTS after closing fb2k.

Also, does Playlist Tree not allow Unicode characters now? I had a couple of queries that were rating based, and they were set to show Unicode characters for the nodes in the query (like one star, twos stars, etc.). When I did some editing of the PTS file by hand, it would not function if saved in any of the Unicode format options, I had to use ANSI for it to work.

Thanks,
kockroach

Edit: After adding another panel onto my current Columns UI view, I find that this also caused some of the queries/folders to be trimmed from the end of my PTS file. Not sure what is happening here. Has anyone else seen this?


everytime i change the colums ui panel that the playlist tree is in, i have to right click in an empty area of the playlist tree panel and "Save File and Load...". if i dont, it will only show the default queries. but otherwise everything loads exactly how i left it. could it be because you have multiple instances of the playlist tree panel? are you sure your not confusing the pts files?
kockroach
QUOTE(gob @ Jun 10 2006, 13:19) *

everytime i change the colums ui panel that the playlist tree is in, i have to right click in an empty area of the playlist tree panel and "Save File and Load...". if i dont, it will only show the default queries. but otherwise everything loads exactly how i left it. could it be because you have multiple instances of the playlist tree panel? are you sure your not confusing the pts files?

I only have one Playlist Tree panel. So there is only one PTS file. The PTS file is not altered if I resize the Playlist Tree window. It appears that it is being altered only when I add in a new Panel. I just removed a panel that sits below my Playlist Tree panel, it did not affter the PTS file. However, when I added in a panel below it (or in any other area for that matter), it does alter the PTS file.

Also, I cannot just right-click in an open area and choose "Select file and Load". The changes caused by this problem have already taken affect, so "Select File and Load" pulls up the same thing. It does not pull up the correct configuration. I have to actually close fb2k, and copy the backup copy of my PTS file into the fb2k directory.
gob
QUOTE(mpeople @ Jun 10 2006, 15:03) *

QUOTE(gob @ Jun 10 2006, 18:47) *

it sounds like you might have lost most of your music. i would immediately halt ALL activity on that drive because the files may still be left intact if data isnt written over them. i would use a program called restoration to try and recover the files.


thank you very much for the restoration tool!

the good news is that it managed to find all deleted files and folders, so they are still there smile.gif

the not so good is that i must restore each file manually and specify the destination folder - 3120 operations crying.gif

i tried "system restore" and it couldn't restore them automatically, so i did undo "system restore" and i'm back to where i started wink.gif

i will see if i can find a less time-consuming solution on the net and post it of course! if not.....there's still an option smile.gif

meanwhile, if someone knows of such a solution, please let me know, it would save me a lot of hard work!

cheers,
mihail


if you select the directory the files were stored in you can do it in one operation. make sure you restore to a different drive, otherwise you might end up overwriting the data.


QUOTE(kockroach @ Jun 10 2006, 14:37) *

QUOTE(gob @ Jun 10 2006, 13:19) *

everytime i change the colums ui panel that the playlist tree is in, i have to right click in an empty area of the playlist tree panel and "Save File and Load...". if i dont, it will only show the default queries. but otherwise everything loads exactly how i left it. could it be because you have multiple instances of the playlist tree panel? are you sure your not confusing the pts files?

I only have one Playlist Tree panel. So there is only one PTS file. The PTS file is not altered if I resize the Playlist Tree window. It appears that it is being altered only when I add in a new Panel. I just removed a panel that sits below my Playlist Tree panel, it did not affter the PTS file. However, when I added in a panel below it (or in any other area for that matter), it does alter the PTS file.

Also, I cannot just right-click in an open area and choose "Select file and Load". The changes caused by this problem have already taken affect, so "Select File and Load" pulls up the same thing. It does not pull up the correct configuration. I have to actually close fb2k, and copy the backup copy of my PTS file into the fb2k directory.



it could be something in your queries causing a crazy character to appear. post your pts file, i'll check it out.
kockroach
QUOTE(gob @ Jun 10 2006, 14:14) *

it could be something in your queries causing a crazy character to appear. post your pts file, i'll check it out.

Here is what is in my PTS file:
CODE

(FOLDER "Playlist Tree" 1 :CONTENTS (
(QUERY "Playlists" 0 "@playlists" nil "%artist%|%album%|[$num(%tracknumber%,2) - ]%title%" nil 1 :CONTENTS (
(QUERY "*Browser*" 0 "@playlist<*Browser*>" nil "%artist%|%album%|[$num(%tracknumber%,2) - ]%title%" nil 0)
(QUERY "Default" 0 "@playlist<Default>" nil "%artist%|%album%|[$num(%tracknumber%,2) - ]%title%" nil 0)
))
(FOLDER "Music DB Stats" 1 :CONTENTS (
(QUERY "Total Artists: @format<$ifgreater(%_foldercount%,0,%_foldercount%,%_itemcount%)>" 0 "@database" "%__codec% IS FLAC" "%album artist%|%album%|[$num(%tracknumber%,2) - ]%title%" nil 0)
(QUERY "Total Albums: @format<$ifgreater(%_foldercount%,0,%_foldercount%,%_itemcount%)>" 0 "@database" "%__codec% IS FLAC AND tracknumber IS 1 OR tracknumber IS 01" "%album artist% - %album%|[$num(%tracknumber%,2) - ]%title%" nil 0)
(QUERY "Total Tracks: @format<$ifgreater(%_foldercount%,0,%_foldercount%,%_itemcount%)>" 0 "@database" "%__codec% IS FLAC" "%title%" nil 0)
(QUERY "Total Genres: @format<$ifgreater(%_foldercount%,0,%_foldercount%,%_itemcount%)>" 0 "@database" "%__codec% IS FLAC" "%genre%|%album artist%|%album%|[$num(%tracknumber%,2) - ]%title%" nil 0)
)) (FOLDER "Database Views" 1 :CONTENTS (
(QUERY "True Directory View" 0 "@database" nil "$directory(%_path%,3)|$directory(%_path%,2)|$directory(%_path%,1)|$num(%tracknumber%,2). %title%" nil 0)
(QUERY "Artist by Alphabet" 0 "@database" "%__codec% IS FLAC" "$cut($if($strcmp($left(%album artist%,4),The ),$right(%album artist%,$sub($len(%album artist%),4))', 'The,%album artist%),1)|%artist%|%album%|$num(%tracknumber%,2). %title%" "$cut($if($strcmp($left(%artist%,4),The ),$right(%artist%,$sub($len(%artist%),4))', 'The,%artist%),1)|$if($strcmp($left(%artist%,4),The ),$right(%artist%,$sub($len(%artist%),4))', 'The,%artist%)|'('%date%')' %album%|$num(%tracknumber%,2). %title%" 0)
(QUERY "Artist by Genre" 0 "@database" "%__codec% IS FLAC" "%genre%|%album artist%|'('%date%')' %album%|$num(%tracknumber%,2). %title%" "%genre%|$if($strcmp($left(%album artist%,4),The ),$right(%album artist%,$sub($len(%album artist%),4))', 'The,%album artist%)|'('%date%')' %album%|$num(%tracknumber%,2). %title%" 0)
(QUERY "Artist - Album by Date" 0 "@database" "%__codec% IS FLAC" "%album artist%|'('%date%')' %album%|$num(%tracknumber%,2). %title%" "$if($strcmp($left(%album artist%,4),The ),$right(%album artist%,$sub($len(%album artist%),4))', 'The,%album artist%)|'('%date%')' %album%|$num(%tracknumber%,2). %title%" 0)
(QUERY "Album by Title" 0 "@database" "%__codec% IS FLAC" "$cut(%album%,1)|%album%|$num(%tracknumber%,2). %title%" nil 0)
(QUERY "Album by Year" 0 "@database" "%__codec% IS FLAC" "%date%|%album%|$num(%tracknumber%,2). %title%" nil 0)
(QUERY "Individual Tracks by Codec" 0 "@database" nil "$directory(%_path%,3) 'Singles' '(''@format<%_itemcount%>'')'|$cut(%title%,1)|%title%" nil 0)
)) (FOLDER "Dynamic Playlists" 1 :CONTENTS (
(QUERY "Random Album" 0 "@database" "%__codec% IS FLAC" "%album artist% - %album%|[$num(%tracknumber%,2) - ]%title%" "$rand()" 0 :MAX-FOLDERS 1)
(QUERY "Random Artist" 0 "@database" "%__codec% IS FLAC" "%album artist%|%album%|[$num(%tracknumber%,2) - ]%title%" "$rand()" 0 :MAX-FOLDERS 1)
(QUERY "Random Album by Genre" 0 "@database" "%__codec% IS FLAC" "@limit<1>%genre%|%album artist% - %album%|$num(%tracknumber%,2). %title%" "%genre%|$rand()" 0)
(QUERY "100 Random Singles" 0 "@database" "%__codec% IS FLAC" "%title%" "$rand()" 0 :MAX-TRACKS 100)
(QUERY "10 Random Singles by Genre" 0 "@database" "%__codec" "%album artist%|%album%|[$num(%tracknumber%,2) - ]%title%" nil 0)
(QUERY "Ska-Punk Singles -- @format<%_size_abb%>" 0 "@database" "genre IS punk rock AND %__codec% IS MP3 OR genre IS ska AND %__codec% IS MP3" "%artist% - %title%" "$rand()" 0 :MAX-SIZE 960)
(QUERY "MOD 588 Failed" 0 "@database" "NOT $mod(%_length_samples%,588) IS 0" "%__codec%|%album artist%|'('%date%')' %album%|$num(%tracknumber%,2). %title%" "$if($strcmp($left($if2(%album artist%,%artist%),4),The ),$right($if2(%album artist%,%artist%),$sub($len($if2(%album artist%,%artist%)),4))', 'The,$if2(%album artist%,%artist%))|'('%date%')' %album%|$num(%tracknumber%,2). %title%" 0)
(QUERY "MOD 588 Passed" 0 "@database" "$mod(%_length_samples%,588) IS 0" "%__codec%|%album artist%|'('%date%')' %album%|$num(%tracknumber%,2). %title%" "$if($strcmp($left($if2(%album artist%,%artist%),4),The ),$right($if2(%album artist%,%artist%),$sub($len($if2(%album artist%,%artist%)),4))', 'The,$if2(%album artist%,%artist%))|'('%date%')' %album%|$num(%tracknumber%,2). %title%" 0)
(QUERY "Never Played" 0 "@database" "%__codec% IS FLAC AND play_counter MISSING" "%artist% - %title%" "%artist%|%title%" 0)
(FOLDER "Top 50" 1 :CONTENTS (
(QUERY "Most Played" 0 "@database" "[%play_counter%]" "'('$num(%play_counter%,3)')' %artist% - %title%" "$num(%play_counter%,3)|%artist%|%title%" 0 :REVERSE t :MAX-TRACKS 50)
(QUERY "Last Played" 0 "@database" "[%last_played%]" "%artist% - %title%" "%last_played%|%artist%|%title%" 0 :REVERSE t :MAX-TRACKS 50)
(QUERY "Least Played" 0 "@database" "[%play_counter%]" "%artist% - %title%" "%play_counter%|%artist%|%title%" 0 :MAX-TRACKS 50)
))))))


The above display fine, but if I remove a panel, then put it back, the PTS file is changed to something like this:
CODE

(FOLDER "Playlist Tree" 1 :CONTENTS (
(QUERY "Playlists" 0 "@playlists" nil "%artist%|%album%|[$num(%tracknumber%,2) - ]%title%" nil 1 :CONTENTS (
(QUERY "*Browser*" 0 "@playlist<*Browser*>" nil "%artist%|%album%|[$num(%tracknumber%,2) - ]%title%" nil 0)
(QUERY "Default" 0 "@playlist<Default>" nil "%artist%|%album%|[$num(%tracknumber%,2) - ]%title%" nil 0)
))
(FOLDER "Music DB Stats" 1 :CONTENTS (
(QUERY "Total Artists: @format<$ifgreater(%_foldercount%,0,%_foldercount%,%_itemcount%)>" 0 "@database" "%__codec% IS FLAC" "%album artist%|%album%|[$num(%tracknumber%,2) - ]%title%" nil 0)
(QUERY "Total Albums: @format<$ifgreater(%_foldercount%,0,%_foldercount%,%_itemcount%)>" 0 "@database" "%__codec% IS FLAC AND tracknumber IS 1 OR tracknumber IS 01" "%album artist% - %album%|[$num(%tracknumber%,2) - ]%title%" nil 0)
(QUERY "Total Tracks: @format<$ifgreater(%_foldercount%,0,%_foldercount%,%_itemcount%)>" 0 "@database" "%__codec% IS FLAC" "%title%" nil 0)
(QUERY "Total Genres: @format<$ifgreater(%_foldercount%,0,%_foldercount%,%_itemcount%)>" 0 "@database" "%__codec% IS FLAC" "%genre%|%album artist%|%album%|[$num(%tracknumber%,2) - ]%title%" nil 0)
)) (FOLDER "Database Views" 1 :CONTENTS (
(QUERY "True Directory View" 0 "@database" nil "$directory(%_path%,3)|$directory(%_path%,2)|$directory(%_path%,1)|$num(%tracknumber%,2). %title%" nil 0)
(QUERY "Artist by Alphabet" 0 "@database" "%__codec% IS FLAC" "$cut($if($strcmp($left(%album artist%,4),The ),$right(%album artist%,$sub($len(%album artist%),4))', 'The,%album artist%),1)|%artist%|%album%|$num(%tracknumber%,2). %title%" "$cut($if($strcmp($left(%artist%,4),The ),$right(%artist%,$sub($len(%artist%),4))', 'The,%artist%),1)|$if($strcmp($left(%artist%,4),The ),$right(%artist%,$sub($len(%artist%),4))', 'The,%artist%)|'('%date%')' %album%|$num(%tracknumber%,2). %title%" 0)
(QUERY "Artist by Genre" 0 "@database" "%__codec% IS FLAC" "%genre%|%album artist%|'('%date%')' %album%|$num(%tracknumber%,2). %title%" "%genre%|$if($strcmp($left(%album artist%,4),The ),$right(%album artist%,$sub($len(%album artist%),4))', 'The,%album artist%)|'('%date%')' %album%|$num(%tracknumber%,2). %title%" 0)
(QUERY "Artist - Album by Date" 0 "@database" "%__codec% IS FLAC" "%album artist%|'('%date%')' %album%|$num(%tracknumber%,2). %title%" "$if($strcmp($left(%album artist%,4),The ),$right(%album artist%,$sub($len(%album artist%),4))', 'The,%album artist%)|'('%date%')' %album%|$num(%tracknumber%,2). %title%" 0)
(QUERY "Album by Title" 0 "@database" "%__codec% IS FLAC" "$cut(%album%,1)|%album%|$num(%tracknumber%,2). %title%" nil 0)
(QUERY "Album by Year" 0 "@database" "%__codec% IS FLAC" "%date%|%album%|$num(%tracknumber%,2). %title%" nil 0)
(QUERY "Individual Tracks by Codec" 0 "@database" nil "$directory(%_path%,3) 'Singles' '(''@format<%_itemcount%>'')'|$cut(%title%,1)|%title%" nil 0)
)) (FOLDER "Dynamic Playlists" 1 :CONTENTS (
(QUERY "Random Album" 0 "@database" "%__codec% IS FLAC" "%album artist% - %album%|[$num(%tracknumber%,2) - ]%title%" "$rand()" 0 :MAX-FOLDERS 1)
(QUERY "Random Artist" 0 "@database" "%__codec% IS FLAC" "%album artist%|%album%|[$num(%tracknumber%,2) - ]%title%" "$rand()" 0 :MAX-FOLDERS 1)
(QUERY "Random Album by Genre" 0 "@database" "%__codec% IS FLAC" "@limit<1>%genre%|%album artist% - %album%|$num(%tracknumber%,2). %title%" "%genre%|$rand()" 0)
(QUERY "100 Random Singles" 0 "@database" "%__codec% IS FLAC" "%title%" "$rand()" 0 :MAX-TRACKS 100)
(QUERY "10 Random Singles by Genre" 0 "@database" "%__codec" "%album artist%|%album%|[$num(%tracknumber%,2) - ]%title%" nil 0)
(QUERY "Ska-Punk Singles -- @format<%_size_abb%>" 0 "@database" "genre IS punk rock AND %__codec% IS MP3 OR genre IS ska AND %__codec% IS MP3" "%artist% - %title%" "$rand()" 0 :MAX-SIZE 960)
(QUERY "MOD 588 Failed" 0 "@database" "NOT $mod(%_length_samples%,588) IS 0" "%__codec%|%album artist%|'('%date%')' %album%|$num(%tracknumber%,2). %title%" "$if($strcmp($left($if2(%album artist%,%artist%),4),The ),$right($if2(%album artist%,%" 0)
))))sub($len($if2(%album artist%,%artist%)),4))', 'The,$if2(%album artist%,%artist%))|'('%date%')' %album%|$num(%tracknumber%,2). %title%" 0)
(QUERY "MOD 588 Passed" 0 "@database" "$mod(%_length_samples%,588) IS 0" "%__codec%|%album artist%|'('%date%')' %album%|$num(%tracknumber%,2). %title%" "$if($strcmp($left($if2(%album artist%,%artist%),4),The ),$right($if2(%album artist%,%artist%),$sub($len($if2(%album artist%,%artist%)),4))', 'The,$if2(%album artist%,%artist%))|'('%date%')' %album%|$num(%tracknumber%,2). %title%" 0)
(QUERY "Never Played" 0 "@database" "%__codec% IS FLAC AND play_counter MISSING" "%artist% - %title%" "%artist%|%title%" 0)
(FOLDER "Top 50" 1 :CONTENTS (
(QUERY "Most Played" 0 "@database" "[%play_counter%]" "'('$num(%play_counter%,3)')' %artist% - %title%" "$num(%play_counter%,3)|%artist%|%title%" 0 :REVERSE t :MAX-TRACKS 50)
(QUERY "Last Played" 0 "@database" "[%last_played%]" "%artist% - %title%" "%last_played%|%artist%|%title%" 0 :REVERSE t :MAX-TRACKS 50)
(QUERY "Least Played" 0 "@database" "[%play_counter%]" "%artist% - %title%" "%play_counter%|%artist%|%title%" 0 :MAX-TRACKS 50)
))))))


I thought that perhaps it might be due to a folder within a folder. Even if I bring that last folder ("Top 50") into the main "Dynamic Playlist" folder, it still happens.
foosion
Posts regarding "File operations/Delete file(s)" moved to separate topic.
drake
this thing is awesome... makes for some great organization. i was just wondering how i can add more details down at the line from each thing

like this.

basically, how do you customize the query level info? all the stuff i've found to read about it involves .col files and loading stuff... but i can't find where to load .col files to being with.


muchas gracias
cwbowron
QUOTE(drake @ Jun 11 2006, 14:50) *

basically, how do you customize the query level info? all the stuff i've found to read about it involves .col files and loading stuff... but i can't find where to load .col files to being with.


You should be able to add track length information by changing the format of the query, something like:

CODE
$upper($left(%artist%,1))|%artist%|%album%|[$num(%tracknumber%,2) - ]%title% '('%length%')'


You can setup a file to save to by right clicking on playlist tree panel, but not on any of the actual tree items... choose "Select File..." and you can pick a file to save to when you exit and it will then automatically saved and restored in further instances...
cwbowron
A note about layouts, etc

Playlist tree is designed so that it multiple panels can be used. As such, each panel instance is saves its configuration information such as the save/restore file. When you change layouts, even if you each layout only has one instance of playlist tree panel, those instances are not the same and as such they do not use the same file for storing and loading. So when you change layouts and it reverts to the default queries, that's a feature not a bug.

I am adding a feature request to my list to create a global/save restore file so that if you have multiple layouts, each one having ONE playlist tree panel they both utilize the same file.


QUOTE(kockroach @ Jun 10 2006, 10:09) *

Also, does Playlist Tree not allow Unicode characters now? I had a couple of queries that were rating based, and they were set to show Unicode characters for the nodes in the query (like one star, twos stars, etc.). When I did some editing of the PTS file by hand, it would not function if saved in any of the Unicode format options, I had to use ANSI for it to work.


It should, but I dont use unicode much myself so there may be some issues. Was there any chance that the problem was due to the program you used to edit the pts file messing things up?
kockroach
QUOTE(cwbowron @ Jun 12 2006, 08:11) *

A note about layouts, etc

Playlist tree is designed so that it multiple panels can be used. As such, each panel instance is saves its configuration information such as the save/restore file. When you change layouts, even if you each layout only has one instance of playlist tree panel, those instances are not the same and as such they do not use the same file for storing and loading. So when you change layouts and it reverts to the default queries, that's a feature not a bug.

I am adding a feature request to my list to create a global/save restore file so that if you have multiple layouts, each one having ONE playlist tree panel they both utilize the same file.

Good to know. I can understand why this might be there. However, should it be altering my PTS file when I am changing the panels within a Columns UI layout? I am not removing the Playlist Tree panel, but adding in or removing other panels or toolbars. This is also causing the problem I mention above, and the two examples of a PTS file contents are from before and after removing a panel that was below my Playlist Tree window.

QUOTE(cwbowron @ Jun 12 2006, 08:15) *

It should, but I dont use unicode much myself so there may be some issues. Was there any chance that the problem was due to the program you used to edit the pts file messing things up?

It was just a straight copy and paste of the query and format lines from my old COL file from 0.8.3's Playlist Tree version. Not the whole contents of the file. I'll try something else.

Thanks.
cwbowron
QUOTE(kockroach @ Jun 12 2006, 09:16) *

Good to know. I can understand why this might be there. However, should it be altering my PTS file when I am changing the panels within a Columns UI layout? I am not removing the Playlist Tree panel, but adding in or removing other panels or toolbars. This is also causing the problem I mention above, and the two examples of a PTS file contents are from before and after removing a panel that was below my Playlist Tree window.
Thanks.


It might be trying to save the file even if you arent actually closing down the instance of playlist tree. There is a bit of a kludge in there to save the file when there is some columns ui activity... I will look into that... I'm also looking into why your file is getting munged...
kockroach
Cool. Let me know if you need anything from me. I was going to try out the previous version, but there aren't download links for any of them.

And it does seem to save the file without closing fb2k. When I remove a panel (or add one) to my view, it redraws the whole fb2k window. Then I look at my Playlist Tree panel, and the list has been shortened. Without closing fb2k, I open up the PTS file, and it is altered. That is what I actually posted above...and altered PTS file without even closing fb2k.
jkwarras
Hi cwbowron,

I've finally switched to fb2k 0.9 and I'm really happy with the new PT, it's really stable and quick, nice work.

I mostly use it now as a dynamic playlist generator and to keep track of my personal playlists. This is the layout I have:

+Dynamic Playlists:
--->Library
--->Most played
--->Last played
--->Random Album
+Personal Playlists:
--->Favorites

I have some questions:
- The Personal Playlists is just a folder with some subfolders. Each subfolder is like a playlist, I drag and drop files from other playlists, browser,etc... to make static playlists i.e. favorite tracks. It works like a charm, and as long as you add files everything is fine, it's keep up-to-date. But when you remove a trackfrom one of the subfolder, then the track isn't really removed, when you refresh the query or reboot fb2k, then the removed tracks are then again. Is this intended? Could it be possible to also add an option to autosave as a regular playlist somewhere in the harddrive?

- Could it be possible to specify an option to sort a folder/subfolder content. I mean, when I add a track it's added to the bottom of the playlist, and I have to sort the playlist manually. Not a big deal, but it will be nice if I could set a sort.

Maybe I'm not using PT as intended, so let me know if there are better options for what I'm doing smile.gif

PS: another way could be to @drop a directory with personal playlists, but I guess everytime I'll add something it won't be saved into the playlist and I'll lose changes when the static playlist is reloaded.

Thanks for this great plugin dude.
jkwarras
Oh, another question:
When I drag and drop a playlist/folder/query from PT panel to the Playlist switcher, it's always renamed as 'New Playlist', could it be possible to configure that, so the name could be something else (using tagz or whatever)?

I don't know if it's your plugin or playlist switcher's behaviour.
cwbowron
QUOTE(jkwarras @ Jun 13 2006, 14:57) *

Oh, another question:
When I drag and drop a playlist/folder/query from PT panel to the Playlist switcher, it's always renamed as 'New Playlist', could it be possible to configure that, so the name could be something else (using tagz or whatever)?

I don't know if it's your plugin or playlist switcher's behaviour.


I think that's playlist switcher's behaviour.

QUOTE(jkwarras @ Jun 13 2006, 14:35) *

I have some questions:
- The Personal Playlists is just a folder with some subfolders. Each subfolder is like a playlist, I drag and drop files from other playlists, browser,etc... to make static playlists i.e. favorite tracks. It works like a charm, and as long as you add files everything is fine, it's keep up-to-date. But when you remove a trackfrom one of the subfolder, then the track isn't really removed, when you refresh the query or reboot fb2k, then the removed tracks are then again. Is this intended? Could it be possible to also add an option to autosave as a regular playlist somewhere in the harddrive?


Is personal playlists set up as folder or query? It seems like it should be a folder, but you said "refresh the query".
jkwarras
QUOTE(cwbowron @ Jun 13 2006, 11:08) *

Is personal playlists set up as folder or query? It seems like it should be a folder, but you said "refresh the query".

It's setup as a folder. 'playlists' are just folders inside the personal palylists folder where I drag items. Sorry, forget about the refresh queries, I mean that when I start fb2k, deleted items are in the subfolder again.
q-stankovic
Hello Chris!

You added some points concerning the @playlist/s stuff in the feature request list. Let me suggest some points more:

1. The query node of @playlist works like a link: The content is not sended to library playlist but opens the original.

2. In format and criteria the usage of variables that are available for the pl switcher: %_isplaying%, %_lockname% (i forget the real name), etc. Example for usage: Status IS %_isplaying% or %_lockname% IS History etc

3. Creating new playlists in pl switcher from PT.

It would bee great to have the functionality of playlist mangement.


Another point concerning static folders: It would be great if the pts.file could be automatically refreshed after renaming or moving files. Now after using the renamer the static playlists point to the old names
jkwarras
QUOTE(jkwarras @ Jun 13 2006, 13:26) *

QUOTE(cwbowron @ Jun 13 2006, 11:08) *

Is personal playlists set up as folder or query? It seems like it should be a folder, but you said "refresh the query".

It's setup as a folder. 'playlists' are just folders inside the personal palylists folder where I drag items. Sorry, forget about the refresh queries, I mean that when I start fb2k, deleted items are in the subfolder again.


I've just re-read my post and I see I didn't explain it really clearly. I have a static folder, within this folder I've put several static folders where I drag and drop tracks. So I use them as playlists. The problem is when I delete a track from the playlist, it's not really removed, if I click on another playlist/query/folder in the playlist tree panel, and I click again on the static oflder where I have deleted the track, it's there again.

Maybe it's because I hidde leaves and I remove the track from the lirbary playlist, not the folder content. Just guessing...

Another question: it's systemdate available in this new version of PT?
cwbowron
QUOTE(jkwarras @ Jun 15 2006, 11:58) *
I've just re-read my post and I see I didn't explain it really clearly. I have a static folder, within this folder I've put several static folders where I drag and drop tracks. So I use them as playlists. The problem is when I delete a track from the playlist, it's not really removed, if I click on another playlist/query/folder in the playlist tree panel, and I click again on the static oflder where I have deleted the track, it's there again.

Maybe it's because I hidde leaves and I remove the track from the lirbary playlist, not the folder content. Just guessing...

Another question: it's systemdate available in this new version of PT?


Yes, currently the file is only removed from the tree if you middle click on it and select "Remove" or use the main menu remove selection thing. Removing a file from the system does not currenlty affect files in folders. I am looking at hooking up some file notification callbacks so moved files and removed files are handled correclty in the tree.

systemdate is not available in playlist tree. I think it would be better as a global hook. I may add it to my foo_cwb_hooks, but I havent done anywork on that lately...
jkwarras
I think I've found a bug. When you change the Column UI layout, and you have the PT panel in the layout, once you click apply, the PT configuration just dissapear.
kockroach
QUOTE(jkwarras @ Jun 15 2006, 12:59) *

I think I've found a bug. When you change the Column UI layout, and you have the PT panel in the layout, once you click apply, the PT configuration just dissapear.

Sounds kind of like the problem I described above.
cwbowron
QUOTE(kockroach @ Jun 15 2006, 15:18) *

QUOTE(jkwarras @ Jun 15 2006, 12:59) *

I think I've found a bug. When you change the Column UI layout, and you have the PT panel in the layout, once you click apply, the PT configuration just dissapear.

Sounds kind of like the problem I described above.


I think the playlist tree panel that is being created is not the same one, so they two instances don't know about each other... you might try doing something similiar with another panel that remembers its own state like trackinfo and see if they lose their config too...

jkwarras
QUOTE(q-stankovic @ Jun 14 2006, 07:27) *

1. The query node of @playlist works like a link: The content is not sended to library playlist but opens the original.

[...]

It would bee great to have the functionality of playlist mangement.


I second both requests.

One little suggestion, could it be possible to add more than one PT panel? I'll like to get more than 2 PT panels, but with different configurations.
cwbowron
QUOTE(jkwarras @ Jun 15 2006, 16:31) *
One little suggestion, could it be possible to add more than one PT panel? I'll like to get more than 2 PT panels, but with different configurations.


Its already possible... columns ui layout should let you add as many as you want...
cwbowron
CODE
Release 2.2.beta0

    * faster query results using compiled titleformatter (1.15s vs .39s in one sample)
          o improvements only on queries not using the %<tag>% stuff

New Features

    * @queue source designator. allows you to view whats in the playback queue.
          o can be set to automatically update when files are added to queue or played
    * @playlist queries can be set to automatically update when the source playlist is changed
    * @playlists queries can be set to automatically update if a playlists is add, removed or renamed
    * new context menu item: play in library playlist - clears queue, sends selection to library playlists and plays it
    * dropping items to a auto refreshed @queue query will add the item to the queue as well as the node
    * dropping items to a auto refreshed @playlist query will add the item to that playlist as well as the node
          o dropping items will also cause the query to refresh so that the folder layout is correct - so if you drop a file anywhere under a playlist or queue quere, the playlist or queue will be added to, then the query will be refreshed so everything in the query node is in the proper place...
    * respond to file moves and deletes by moving underyling path and removing node respectively.
kockroach
QUOTE(cwbowron @ Jun 15 2006, 14:22) *

QUOTE(kockroach @ Jun 15 2006, 15:18) *

QUOTE(jkwarras @ Jun 15 2006, 12:59) *

I think I've found a bug. When you change the Column UI layout, and you have the PT panel in the layout, once you click apply, the PT configuration just dissapear.

Sounds kind of like the problem I described above.


I think the playlist tree panel that is being created is not the same one, so they two instances don't know about each other... you might try doing something similiar with another panel that remembers its own state like trackinfo and see if they lose their config too...

Not sure what you mean here about two instances. In my case, there is only one Playlist Tree panel. When any layout change is made to Columns UI, the Playlist Tree panel's PTS file gets changed immediately (as shown in a previous post). Nothing happens to either of my two Track Info panels. They keep their configurations while the same layout changes cause problems with PLT.
cwbowron
Anybody tried any of the new auto refreshing options in 2.2?
gob
not home right now, but i'll check thius new version out if im home later tonight...
just to let u know cwbowron, each time you release a new version of the PLT, the refresh time gets faster and faster. biggrin.gif

btw, cant wait to try the new features with the que viewer andm editor.
jkwarras
Here, @playlists<> autorefresh work great, and the same for @playlist. However, I wonder if thi @playlist<> functionality could be added to @drop (for playlists, directories or just files droped into a PT folder), I mean:

I have a directory with personal playlists and if I want theme to apperar in PT I have 3 choices:
1) Drop every playlist using @drop<path-to-the-playlists\playlist.fpl>
2) Drop the whole directory using @drop<path-to-the-playlists>, and every playlists will appear as a static folder.
3) Open the playlists in fb2k and use @playlists<> to manage them.

But this are the 'issues' I encounter:
1) Any change (add/remove song) to the drop query is not saved since it always load the original playlist and doesn't save the changes to the loaded playlist.
2) Idem as 1) since they are also static. Changes aren't saved.
3) Idem as 1 and 2. Changes are only saved if you use @playlist and you load the playlists one by one. So you have to always have these playlists opened and in the fb2k playlists/directory.

It'll be nice if the new @playlist autosaved feature could be added to @drop, so:

- You don't have to keep the playlists opened (imagine if you don't save the playlist and you close it, ops, it's gone)
- You can just make new playlists into a directory, you drop it, and these are managed by PT (added/removed tracks, create/delete playlists, etc...)

Thanks.
HiFiRE
'Is it possible to have the tree sort artists starting with "the" by the word after "the"?
jkwarras
QUOTE(jkwarras @ Jun 16 2006, 11:31) *

It'll be nice if the new @playlist autosaved feature could be added to @drop, so:

I've been playing a littlle more with the options we have right now in PT to manage playlists, but I admit that managing external playlists, that are not in the foobar2000\playlists directory (so, opened in foobar) is not very nice. Right now, if you drop a directory with several playlists, PT will trat them as static folders that it load everytime you open fb2k. If you drop files to the playlist folder, it'll load them, but if you switch to another place in the PT tree and you get back to this PT static folder, the content regenerated is obviously the source playlists, so changes are lost. The only way right now is, to open this static node as a playlist in the playlists switcher and remember to save changes to the real external playlist. Changes in the static folder are not automatics, so you have to restart fb2k (or refresh the drop query) to make PT reload the directory with external playlists and see the changes.

Hope it makes sense and you fine this suggestions useful cwbowron. PT is really great and improving everyday. Good work.
kockroach
QUOTE(HiFiRE @ Jun 17 2006, 01:53) *

'Is it possible to have the tree sort artists starting with "the" by the word after "the"?

CODE
$if($strcmp($left(%artist%,4),The ),$right(%artist%,$sub($len(%artist%),4))', 'The,%artist%)|%album%|$num(%tracknumber%,2). %title%

I believe this is what you would want. This sorts by Artist (ignoring "The "), then by album, the by tracknumber (with trackname).
topdownjimmy
QUOTE(cwbowron @ Jun 16 2006, 13:53) *

Anybody tried any of the new auto refreshing options in 2.2?

What does "Automatically Refresh" do exactly? Does it refresh every time a new track is played, or every time foobar starts up, or what?

This is another example of one of my biggest frustrations with playlist tree, its consistent use of ambiguous language. I love the component and consider it to be almost essential for me, but some clearer language would make things a lot easier.
HotWot
I'm sorry if this is a stupid question, but I'm at a complete loss here... In preferences -> playlist tree panel -> mouse and keyboard, I can choose the action "add to specified playlist"

Sounds like exactly what I am looking for, but how on earth do I specify what playlist to use? At this moment, when I use this function, nothing happens at all... Am I overlooking something here?
cwbowron
QUOTE(topdownjimmy @ Jun 17 2006, 09:29) *

QUOTE(cwbowron @ Jun 16 2006, 13:53) *

Anybody tried any of the new auto refreshing options in 2.2?

What does "Automatically Refresh" do exactly? Does it refresh every time a new track is played, or every time foobar starts up, or what?

This is another example of one of my biggest frustrations with playlist tree, its consistent use of ambiguous language. I love the component and consider it to be almost essential for me, but some clearer language would make things a lot easier.


I added a section about automatic refreshes to the tutorial.

http://wiki.bowron.us/index.php/Foobar2000...tomatic_Refresh

If you would like to help make the documentation clearer, please PM or email me and I will set you up an account on my wiki and you can help out with the documentation.
q-stankovic
I am excited of the new autorefresh features and like to second jkwarras request for making this feature available for other sources: there remains thre more - @node,@database and @drop.

It is the only annoying point of foobar that it doesn't refresh media library automatically on adding or removing files but you have to do it manually. Hopefully the foo_dirwatch plugin will someday be ported or Peter will consider to implement this essential feature in a future version.

But however: I would love it if PT could be able to recognize changes to the database so that it refresh automatically refreshes that queries that have @database as source.

The @drop stuff would be a bigger stuff, i think!

HiFiRE
QUOTE(kockroach @ Jun 17 2006, 04:12) *

QUOTE(HiFiRE @ Jun 17 2006, 01:53) *

'Is it possible to have the tree sort artists starting with "the" by the word after "the"?

CODE
$if($strcmp($left(%artist%,4),The ),$right(%artist%,$sub($len(%artist%),4))', 'The,%artist%)|%album%|$num(%tracknumber%,2). %title%

I believe this is what you would want. This sorts by Artist (ignoring "The "), then by album, the by tracknumber (with trackname).


Sweet, dude. Thanks!
q-stankovic
Just like to say that i miss an old feature from PT 1.7: Remove duplicates on add/send to library playlist.

Another point: I don't want to call it a bug because it doesn't affect the functionality - it is just a graphical issue. Often when you expand a node the panel flickers or for a small part of a second the background becomes white. Can anybody confirm this? (This issue appeared in older versions of PT (1.7.xx) too)
q-stankovic
I did some testing with the new autorefresh options and it works very well. There is just one small issue with @queue: If you close foobar while your queue is not empty after restart the queue is flushed but the queue-node in PT still contain the old entries.
HotWot
QUOTE(HotWot @ Jun 18 2006, 08:03) *

I'm sorry if this is a stupid question, but I'm at a complete loss here... In preferences -> playlist tree panel -> mouse and keyboard, I can choose the action "add to specified playlist"

Sounds like exactly what I am looking for, but how on earth do I specify what playlist to use? At this moment, when I use this function, nothing happens at all... Am I overlooking something here?


A few days ago I posted this question, after some more research, I think the problem is that this function just doesn't work properly atm.

When I create a keyboard shortcut to add music to a certain playlist, I can point the shortcut directly to Edit Other -> Add to playlist -> NameOfPlaylist. This last step, where you specify the playlist to use, can't be done within Playlist Tree, therefore, it simply does nothing.

Another solution to my problem would be if there was a "Add to library playlist and play" function, but atm there is only "Send to" en "Play in" library playlist, both of which immediately delete everything else I have in this playlist.

Can this be fixed? or is there another solution?
q-stankovic
After some more testing the autorefresh stuff i have a suggestion. If there is no sort order checked and as format only leaves under the query node then it would be useful if a dropped file is exactly placed in that position of the playlist where it was dropped in pt panel and not automatically to the end.

Reading the last two or three posts i think it would be nice if the good old user_defined_playlist would be reintroduced. Why not in a seperate plugin? There would be people who don't use PT but would like to have a default/central playlist manipulated by context menu, hotkeys or buttons. Following commands would make sense:

Add to
Add to and play
Add to and play after current
Send to
Send to and play
Send to and play after current
Fit in after playing track
Fit in after playing track and play

The coolest thing is that you can create an own panel in pt, use @playlist<'user-defined'> and has an overview beside of your playlist view (ColumnsUI).



(By the way: Let me explain one of the advantages of my request to use the @playlist query node as a link that opens the original playlist: You click such a query node, the original playlist is opened, you can edit the playlist and the result is reflected by autorefresh. Now you would remove tracks just from library playlist and become confused. Another advantage is that you would take over the attributes of ColumnsUi pllaylists like "read only" and so on. On the other side it makes sense to use the subfolders of such a query node as stuff that is normally sended to library playlist. I believe: a good combination and perhaps it should be optionally.

EDIT: One day later i think even if you have a format for @playlistqueries that uses subfolders it would be nice if the original playlist is opened but then with the special feature that all the tracks of this subfolder are highlighted. Pretty idea? rolleyes.gif )
q-stankovic
Looking in Development version and wishlist shows that the autorefresh stuff is rising and rising. I especially love the new feature "respond to file moves and deletes by moving underyling path and removing node respectively". That feature would be completed if "update on tag change" would be reimplemented: in the preview version for foo 0.8.3 that feature worked very well.
HiFiRE
Is it possible to create a tree of playlist files using a wildcard and searching recursively? Something like @drop<path\*.m3u>

I'd want a tree of the file names of the playlists.
cwbowron
QUOTE(HiFiRE @ Jun 26 2006, 02:04) *

Is it possible to create a tree of playlist files using a wildcard and searching recursively? Something like @drop<path\*.m3u>

I'd want a tree of the file names of the playlists.


Not currently.

But if you're directory contains only playlists you could @drop the directory and each playlist should make its own subfolder.
cwbowron
CODE
Release 2.2.beta2
New Features

    * reimplemented @fakelevel
    * If the title formatting for a folder node uses non-playlist tag, it will try to find them in the first entry in the node. eliminates the need for a $first or @first function
    * turn off window redrawing when doing a user requested refresh
    * on playback skip files with meta tag SKIP (will not make it to the final release)
    * turn off redrawing while a node is expanded. Less window flashing
    * when removing a file from a auto refresh @queue query, remove it from the queue as well
    * when removing a file from a auto refresh @playlist query, remove it from the playlist as well
    * automatically store to a file in the foobar2000 directory
          o This overrides previous settings, but you can re-load your previously saved file and it will handle the storage and retrieval on its own after that.
    * multiple panels can swap contents from the context menu
    * if you are changing the configuration in columns ui, some of the panel contents can get mixed up. if you remove a panel and a different panel seems to be affected, you can right click on the remaining panel and select which contents it has, including the contents of panels that have been removed.

Bug Fixes

    * fixed bug in dropping multiple files onto auto refreshed @playlist/@queue query
    * don't write the contents of @queue query, because queue is not saved between instances


If you install the new version and you had previously been using a save/restore file, its NOT going to load it automatically now... But manually load it using File/Open... and it should now manage the storage and retrieval of content on its own after that... it will save files in foobar2000 profile directory and the files are called playlist-tree-[n].pts, where n will be the panel instance.

You can swap panel contents around from the context menu now, by right clicking somewhere in the panel that is not on any node. This is also useful if things get mucked up by changing around columns ui layout...
Fractal_Mortality
Cwbowron.

One of my favorite parts of the Playlist Tree was being able to see what songs had been recently added. With the new version, how would I be able to accomplish this?

the query I used was this

CODE
($sub(%systemdate%,%added%) LESS 101) AND ($sub(%systemdate%,%added%) GREATER -1)


I'm not even sure if the Recently Added plugin has been added.

hmmm....
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.