I'm trying to make a pane for videos with formatduration
Ascending sorting is completely awry, is this a bug? MC Doesn't seem to know the difference between minutes and hours. Is there an easy way to force output in the meantime so all durations output to 7 decimal places, so sorting works ok? I thought about using length and math calculate the missing places, but at is still early in the morning here and it will include 0's and :'s, I'm a little stuck.
like 0:01:22 as opposed to 1:22?
I'm trying to make it as simple as possible because it's for use in a pane that uses global expressions to include videos that belong to multiple groups.
My expressions for file display
[=save(0,v_count_listitem([Group ID],0,;))1]=1
[=save(0,v_count_listitem([Group ID],1,;))1]=1
[=save(0,v_count_listitem([Group ID],2,;))1]=1
[=save(0,v_count_listitem([Group ID],3,;))1]=1
[=ifelse(!isempty(listitem([Group ID],0,;)),save(math([duration,0]+load(v_count_listitem([Group ID],0,;))),v_count_listitem([Group ID],0,;)))1]=1
[=ifelse(!isempty(listitem([Group ID],1,;)),save(math([duration,0]+load(v_count_listitem([Group ID],1,;))),v_count_listitem([Group ID],1,;)))1]=1
[=ifelse(!isempty(listitem([Group ID],2,;)),save(math([duration,0]+load(v_count_listitem([Group ID],2,;))),v_count_listitem([Group ID],2,;)))1]=1
[=ifelse(!isempty(listitem([Group ID],3,;)),save(math([duration,0]+load(v_count_listitem([Group ID],3,;))),v_count_listitem([Group ID],3,;)))1]=1
My Pane expression
ifelse(regex([Group ID];, /#(?:([^;]+);\s?)(?:([^;]+);\s?)?(?:([^;]+);\s?)?(?:([^;]+);\s?)?#/),
delimit([R1], , FormatDuration(load(v_count_[R1])):/ );
delimit([R2], , FormatDuration(load(v_count_[R2])):/ );
delimit([R3], , FormatDuration(load(v_count_[R3])):/ );
delimit([R4], , FormatDuration(load(v_count_[R4])):/ );
)&datatype=[list]
Thanks