<% if (viewType == 'album'){ %>
Album Name : <%= albums.join(', ') %>
Artist : <%= infoList[0].attributes.albumArtist %>
Album Artist : <%= infoList[0].attributes.artist %>
Year : <%= infoList[0].attributes.year %>
Tracks : <%= infoList.length %>
Genre : <%= genres.join(', ') %>
Album Art :
<% } if (viewType == 'artist'){ %>
Name : <%= infoList.attributes.value.$ %>
Genre(s) : <%= [genres.join(', ').slice(0,34),'..'] %>
Album(s) : <%= albums.length %> - <%= [albums.join(', ').slice(0,32),'..'] %>
Song(s) : <%= infoList.attributes.songs.length %> - <%= [songs.slice(0, 30),'..'] %>
<% } if (viewType == 'song' || viewType == 'songView' || viewType == 'songview'){ %>
Song Name : <%= infoList.attributes.title %>
Album : <%= infoList.attributes.albumName %>
Album Artist : <%= infoList.attributes.artist %>
Year : <%= infoList.attributes.year %>
Track : <% if(infoList.attributes.trackNo) { %> <%= infoList.attributes.trackNo %> <% } %>
Genre : <%= infoList.attributes.genre %>
Path : <%= (type === "playList" || infoList.attributes.repositoryPath) ? infoList.attributes.repositoryPath : (infoList.attributes.repository+':'+ (infoList.attributes.parentPath === "/" ? '/' : (infoList.attributes.parentPath + "/" )) + infoList.attributes.name) %>
<% } if (viewType == 'allfiles'){ var attrs = infoList[0].attributes; %>
Song Name : <%=title %>
Album : <%=attrs.Album %>
Artist : <%=attrs.Artist %>
Year : <%=attrs.Year %>
Genre : <%=attrs.Genre %>
Path : <%=attrs.repository.$+':'+ (attrs.parentPath.$ === "/" ? '/' : (attrs.parentPath.$ + "/" )) + attrs.name.$ %>
<% } %>