HydrogenAudio

Hosted Forums => foobar2000 => General - (fb2k) => Topic started by: Adil on 2021-11-26 19:41:52

Title: Syntax for the total duration of a playlist
Post by: Adil on 2021-11-26 19:41:52
Hi there.

I need a syntax that shows the total time for a given playlist.

I know the "Properties" panel conveys this information, but I need this syntax to put it in a column of Playlist View or Text Display.

I tried several formulas, but I couldn't get the desired result. If anyone can help me, I am very grateful!
Title: Re: Syntax for the total duration of a playlist
Post by: marc2k3 on 2021-11-27 07:44:53
Normal title formatting is evaluated on a per track basis so calculating a total for a whole playlist worth of items is not possible.

You might consider add a playlist manager panel to your layout and then enabling the duration column like this...

(https://i.imgur.com/VnBWsWz.png)
Title: Re: Syntax for the total duration of a playlist
Post by: Adil on 2021-11-27 12:32:11
That's what I feared...
But thanks for definitively clarifying my question!
Title: Re: Syntax for the total duration of a playlist
Post by: regor on 2021-11-29 12:46:59
The status bar (at least for CUI) shows the total length of the selection for the active playlist.
Double clicking selects the entire playlist and thus shows the total duration. Not exactly what you want, but at least you don't need an additional panel and it only takes a bit of space at bottom.
Title: Re: Syntax for the total duration of a playlist
Post by: Adil on 2021-11-29 13:10:55
I use DUI. Thanks for the info!
Title: Re: Syntax for the total duration of a playlist
Post by: Vicas on 2021-11-29 20:05:03
Status bar in DUI can show duration of selected files too. Useful feature for me, I like to check duration of albums.
Title: Re: Syntax for the total duration of a playlist
Post by: marc2k3 on 2021-11-30 08:16:07
I like to check duration of albums.

Some 3rd party playlist viewers offer support for group length in the headers. Off the top of my head...

ELplaylst (CUI only)
SimPlaylist (DUI only)
EsPlaylist (DUI/CUI)

and of course all those horrible javascript-y things like I use which can display playlist totals as well.

https://i.imgur.com/zglzCq0.png
Title: Re: Syntax for the total duration of a playlist
Post by: Adil on 2021-11-30 16:25:55
I use SimPlaylist and didn't know it. Thanks for the tip!