% 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 item %?>
% IF allow('mplay') %?>
% END %?>
% IF artist.length > 0 %?>
" href="?cmd=ml&data=artist:% url(artist) %?>">
% artist %?>
% END %?>
% IF artist.length > 0 && title.length > 0 %?>
-
% END %?>
% IF title.length > 0 %?>
" href="?cmd=ml&data=title:% url(title) %?>">
% title %?>
% END %?>
|
% IF allow('mgetfile') %?>
" href="?cmd=mgetfile&data=% id %?>">
" />
% END %?>
% IF allow('mplay') %?>
" href="javascript:PlayMusic('% id %?>')">
" />
" href="javascript:PlayMusic('% id %?>')">
% END %?>
% playtime %?>
% IF track != "" %?> (% track %?>)% END %?>
% IF allow('mplay') %?>
% END %?>
|
% END %?>
% ######################################################################## %?>
% BLOCK titleline %?>
" href="?cmd=ml&data=album:% url(album) %?>">
% 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 %?>
% ######################################################################## %?>
% gettext("Music library") %?>
% IF data.size > 1%?>
% fields = data.shift %?>
% END %?>
% global.sidebar = 1 %?>