<% if ($f->{'type'} eq 'audio') { %>
<% if (scalar @{$f->{'thumbs'}} > 0) { %>
<% } else { %>
<% } %>
<% } elsif ($f->{'type'} eq 'video' && $f->{'info'}->{'duration'}) { %>
<% if ($f->{'info'}->{'height'}) { %>
<% my $brother = &subs::random_string_creator(); %>
<% } else { %>
<% } %>
<% } %>
|
<%= $f->{filename} %>
<%= encode_json $f->{'info'} %>
<% if ($f->{'type'} eq 'audio') { %>
<% if ($f->{'info'}->{'tags'}->{'artist'} && $f->{'info'}->{'tags'}->{'title'}) { %>
<% if ($f->{'info'}->{'tags'}->{'track'}) { %><%= $f->{'info'}->{'tags'}->{'track'} %>. <% } %><%= $f->{'info'}->{'tags'}->{'artist'} %> - <%= $f->{'info'}->{'tags'}->{'title'} %>
<% } elsif ($f->{'song'} !~ /\Q$f->{'artist'}/gi) { %>
<%= &subs::format_name($f->{'artist'}) . ' - ' . &subs::format_name($f->{'song'}) %>
<% } else { %>
<%= $f->{'formatted_name'} || $f->{'full_title'} %>
<% } %>
<% } else { %>
<%= $f->{'formatted_name'} || $f->{'full_title'} %>
<% } %>
<% if ($f->{'type'} eq 'audio') { %>
<% if (scalar @{$f->{'thumbs'}} > 0) { %>
<% } %>
<% } elsif ($f->{'type'} eq 'video' && $f->{'info'}->{'duration'}) { %>
<% if ($f->{'info'}->{'height'}) { %>
<% my $brother = &subs::random_string_creator(); %>
<% } %>
<% } %>
<% foreach my $t ( qw/artist album track genre title date composer publisher lyrics height width/ ) { %>
<% if ($f->{$t}) { %>
| <%= &subs::format_name($t) %>: | <%= $f->{$t} %> |
<% } %>
<% } %>
<% if ($f->{'info'}->{'chapters'}) { %>
<% foreach my $ch ( @{$f->{'info'}->{'chapters'}} ) { %>
<% my $brother = &subs::random_string_creator(); %>
|
<%= $ch->{'tags'}->{'title'} || $ch->{'id'} %>
|
<%= &subs::duration_sayer($ch->{'start_time'}) %>
|
<% } %>
<% } %>
|
<%= $f->{'info'}->{'duration'} %> |
<% } %>
<% } %>