Total length in templates

So I've been using the export feature a lot using a following template:

$filename(txt,utf-8)$loop(%_path%)%track%. %title% (%_length%) $loopend() Total length: %_total_time%

It works mostly fine but there is something bugging me about the last line. It returns something like this:

Total length: 00:42:42

Is there any way of removing the "00:" before the length for albums that are less than hour long? How would I achieve that?
Thanks for helpping out in advance :slight_smile:

You could use
$ifgreater($num($left(%_total_time%,2),1),0,%_total_time%,$mid(%_total_time%,4,$len(%_total_time%)))

$ifgreater(%_total_seconds%,3600,%_total_time%,$right(%_total_time%,5))
'12:34:56' ==> '12:34:56'
'00:34:56' ==> '34:56'
'00:04:56' ==> '04:56'
'00:00:56' ==> '00:56'
'00:00:06' ==> '00:06'

... or ...

$ifgreater(%_total_seconds%,3600,%_total_time%,$trimLeft(%_total_time%,'0:'))
'12:34:56' ==> '12:34:56'
'00:34:56' ==> '34:56'
'00:04:56' ==> '4:56'
'00:00:56' ==> '56'
'00:00:06' ==> '6'

DD.20170712.0758.CEST

Thanks a lot guys, both of these work perfectly fine :slight_smile: