% USE date %?>
% ######################################################################## %?>
% total = 0 %?>
% BLOCK summe %?>
%
tt = playtime.split(':');
IF tt.size == 3;
ts = (tt.0 * 3600) + (tt.1 * 60) + ( tt.2 );
ELSIF tt.size == 2;
ts = (tt.0 * 60) + ( tt.1 );
END;
total = total + ts;
%?>
% END %?>
% ######################################################################## %?>
% BLOCK printsumme %?>
% IF total > 0 %?>
%
sec = total mod 60;
min = total div 60 mod 60;
hour = total div 3600;
%?>
% IF hour > 0 %?>% hour FILTER format('%02d') %?>:% END %?>% min FILTER format('%02d') %?>:% sec FILTER format('%02d')%?>
% END %?>
% END %?>
% ######################################################################## %?>
% BLOCK ItemAsArea %?>
% END %?>
% ######################################################################## %?>
% BLOCK titleline %?>
% headlist = [];
smallist = [];
headlist.push(album) IF album.search('\S+');
c=loop.count;
headlist.push(artist) IF artist.search('\S+') AND artist == data.$c.1;
smallist.push(genre) IF genre.search('\S+');
smallist.push(year) IF year != 0;
%?>
% headlist.join(" - ") %?>
% " - " IF headlist.size > 0 AND smallist > 0;
smallist.join(" - ");
IF comment.search('\S+');
" ";
cc = [];
cc.push("(");
cc.push(comment);
cc.push(")");
cc.join(" ");
END; %?>
% END %?>
% ######################################################################## %?>
% BLOCK coverimage %?>
% END %?>
% ######################################################################## %?>
% gettext("Music library") %?>
% IF data.size > 1%?>
% fields = data.shift %?>
% END %?>
% INCLUDE header.inc %?>