[% IF songInfoPlayLinks; songInfoPlayLinks; END %]
[%- albumInfo = BLOCK%]
[% IF itemobj.album %]
[% item = BLOCK %]
[% itemobj.album.title | html %][% END %]
[% PROCESS songInfoItem title = "ALBUM" %]
[% END %]
[% END %]
[% IF albumFirst; albumInfo; END %]
[% FOREACH role = itemobj.contributorRoles.sort %]
[% contributors = itemobj.contributorsOfType(role) || itemobj.album.artistsForRoles(role) %]
[% IF contributors %]
[% contributorsHTML = [] %]
[% FOREACH contributor = contributors %]
[% UNLESS notarget; target = "target=\"browser\""; END %]
[% contributorHTMLFrag = "
$contributor.name" %]
[% contributorsHTML.push(contributorHTMLFrag) %]
[% END %]
[% item = contributorsHTML.join(', ') %]
[% title = role | upper; PROCESS songInfoItem %]
[% END %]
[% END %]
[% IF plugin_meta.title %]
[% item = BLOCK %][% plugin_meta.title | html %][% END %]
[% PROCESS songInfoItem title = "TITLE" %]
[% END %]
[% IF plugin_meta.artist %]
[% item = BLOCK %][% plugin_meta.artist | html %][% END %]
[% PROCESS songInfoItem title = "ARTIST" %]
[% END %]
[% IF !albumFirst; albumInfo; END %]
[% IF itemobj.genres %] [% genresHTML = [] %]
[% FOREACH genre = itemobj.genres %][% UNLESS notarget; target = "target=\"browser\""; END %]
[% genreHTMLFrag = "
$genre.name" %]
[% genresHTML.push(genreHTMLFrag) %]
[% END %]
[% item = genresHTML.join(', ') %]
[% PROCESS songInfoItem title = "GENRE" %]
[% END %]
[% IF itemobj.year %]
[% item = BLOCK %]
[% itemobj.year| html %][% END %]
[% PROCESS songInfoItem title = "YEAR" %]
[% END %]
[% IF headOnly %]
[% IF albumDuration %]
[% item = albumDuration; title = "LENGTH"; PROCESS songInfoItem %]
[% END %]
[% IF itemobj.album.compilation %]
[% item = "YES" | string; title = "COMPILATION"; PROCESS songInfoItem %]
[% END %]
[% IF itemobj.album.replay_gain.defined %]
[% item = itemobj.album.replay_gain | format('%2.2f') |html; title = "ALBUMREPLAYGAIN"; PROCESS songInfoItem %]
[% END %]
[% END %]
[% UNLESS headOnly %]
[% IF itemobj.disc %]
[% item = itemobj.disc | html; title = "DISC"; PROCESS songInfoItem %]
[% END %]
[% IF itemobj.tracknum %]
[% item = itemobj.tracknum | html; title = "TRACK"; PROCESS songInfoItem %]
[% END %]
[% IF itemobj.album.compilation %]
[% item = "YES" | string; title = "COMPILATION"; PROCESS songInfoItem %]
[% END %]
[% IF plugin_meta.type %]
[% item = plugin_meta.type | html; title = "TYPE"; PROCESS songInfoItem %]
[% ELSIF itemobj.content_type %]
[% item = itemobj.content_type | getstring | html; title = "TYPE"; PROCESS songInfoItem %]
[% END %]
[% IF itemobj.duration %]
[% item = itemobj.duration | html; title = "LENGTH"; PROCESS songInfoItem %]
[% END %]
[% IF itemobj.replay_gain.defined %]
[% item = itemobj.replay_gain | format('%2.2f') | html; title = "REPLAYGAIN"; PROCESS songInfoItem %]
[% END %]
[% IF itemobj.album.replay_gain.defined %]
[% item = itemobj.album.replay_gain | format('%2.2f') |html; title = "ALBUMREPLAYGAIN"; PROCESS songInfoItem %]
[% END %]
[% IF itemobj.rating %]
[% item = itemobj.rating | html; title = "RATING"; PROCESS songInfoItem %]
[% END %]
[% IF comment %]
[% item = comment; title = "COMMENT"; PROCESS songInfoItem %]
[% END %]
[% IF itemobj.lyrics %]
[% item = itemobj.lyrics | html_line_break | html_para; title = "LYRICS"; PROCESS songInfoItem %]
[% END %]
[% IF filelength %]
[% item = BLOCK %][% filelength | html %] [% "BYTES" | string %][% END %]
[% PROCESS songInfoItem title = "FILELENGTH" %]
[% END %]
[% IF bitrate %]
[% item = bitrate | html; title = "BITRATE"; PROCESS songInfoItem %]
[% END %]
[% IF itemobj.samplerate %]
[% item = itemobj.prettySampleRate | html; title = "SAMPLERATE"; PROCESS songInfoItem %]
[% END %]
[% IF itemobj.samplesize %]
[% item = itemobj.samplesize | html; title = "SAMPLESIZE"; PROCESS songInfoItem %]
[% END %]
[% IF itemobj.bpm %]
[% item = itemobj.bpm | html; title = "BPM"; PROCESS songInfoItem %]
[% END %]
[% IF itemobj.tagversion %]
[% item = itemobj.tagversion | html; title = "TAGVERSION"; PROCESS songInfoItem %]
[% END %]
[% IF itemobj.path && NOT itemobj.isRemoteURL %]
[% item = BLOCK %][% itemobj.path | unuri | utf8decode | html %] (