Help - Search - Members - Calendar
Full Version: Skipping output in a playlist
Hydrogenaudio Forums > Hosted Forums > foobar2000 > General - (fb2k)
mouthwatering
Another attempt. Either I am overlooking something that's blindingly obvious (in which case some kind soul please enlighten me) or I am trying to do something that's not possible.

Titleformatting: %title% gives me a line with just the title. Fine.

$if(some condition,%title%,) either gives me a line with the title or an empty line. I want the line with the title but not the empty line. I want no output at all.

What I need is

$if(some condition,%title%,$skip()) with $skip being a command that just goes to the next item in the playlist.

If that's not possible with the current titleformat engine, how about adding that or something similar sometime in the future?
Squeller
QUOTE(mouthwatering @ Aug 21 2006, 01:59) *
$if(some condition,%title%,) either gives me a line with the title or an empty line. I want the line with the title but not the empty line. I want no output at all.
Where are you? In columns ui? This does give you no output at all!

QUOTE
What I need is

$if(some condition,%title%,$skip()) with $skip being a command that just goes to the next item in the playlist.

If that's not possible with the current titleformat engine, how about adding that or something similar sometime in the future?

Title formatting is for displaying, not executing commands!

What panel are you talking about?
c0utta
mouthwatering,

I understand your question. Titleformatting is only relevant for one line at a time - you can't go forwards or backwards in a playlist. For example, you can't display any details from the next playlist entry in the current playlist entry.

Cheers,

c0utta
kjoonlee
Are you using "copy names" to create a list of your files?

If yes, you can use foo_utils instead. $crlf() creates a new line, so you can use $if(some condition,%title%$crlf(),) to skip emtpy lines.

If not, I think there's nothing you can do.
mouthwatering
QUOTE(Squeller @ Aug 21 2006, 11:08) *

Where are you? In columns ui? This does give you no output at all!

No columns UI. I avoid additional plugins if I possibly can.

QUOTE(Squeller @ Aug 21 2006, 11:08) *

Title formatting is for displaying, not executing commands!

Who was talking about executing commands? $skip() would just be a titleformatting function like $left().

I only want to format my titles... the only unusual thing being that for some titles in my playlist (the fpl file) I want no output at all in the playlist (the fb2k window).

QUOTE(c0utta @ Aug 21 2006, 12:12) *

I understand your question. Titleformatting is only relevant for one line at a time - you can't go forwards or backwards in a playlist. For example, you can't display any details from the next playlist entry in the current playlist entry.

I know that. I do not want go forward or backward. All I want is to suppress any output, even the empty line, for selected entries in my playlist file.
kjoonlee
In that case, you'll just have to sort your playlist with $(somecondition,0: visible files,1: candidates for deletion) to create your playlists.
mouthwatering
QUOTE(kjoonlee @ Aug 21 2006, 13:55) *

In that case, you'll just have to sort your playlist with $(somecondition,0: visible files,1: candidates for deletion) to create your playlists.

Aaargh... I don't want to delete files in a playlist. I just don't want all files which are in the playlist file displayed in the playlist window.

This playlist is shown in two tabs: in the first tab I see all titles, whereas in the second tab I only want to see specific titles though the playlist itself is exactly the same.

But I think I give up sad.gif This is either too simple or too complicated for fb2k.
Squeller
QUOTE(mouthwatering @ Aug 21 2006, 08:22) *
QUOTE(kjoonlee @ Aug 21 2006, 13:55) *
In that case, you'll just have to sort your playlist with $(somecondition,0: visible files,1: candidates for deletion) to create your playlists.

Aaargh... I don't want to delete files in a playlist. I just don't want all files which are in the playlist file displayed in the playlist window.

This playlist is shown in two tabs: in the first tab I see all titles, whereas in the second tab I only want to see specific titles though the playlist itself is exactly the same.

But I think I give up sad.gif This is either too simple or too complicated for fb2k.

Meanwhile I think I understood what you want: Not to display specific playlist entries.

a) kjonlees approach (a sort string) can not delete files or playlist entries. But I do not see how it should work with a sort string. A sort string sorts, but can't prevent tracks from being displayed imo.

b) columns ui playlist will display anything. The only thing you can do is to make it display empty strings and sort those playlist entries to the end. But as you already noticed, the entries are still there.
kjoonlee
Well, my idea is.. instead of having invisible tracks that you can't select or move or delete, why not move them to the bottom for easy deletion or for easy ignoring?

I can't imagine why people would want invisible tracks.
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.