This is how to add a play icon to the left of the album names in home.jsp:
We are going to edit home.jsp. Here is the part we are going to edit:
- Code: Select all
<c:choose>
<c:when test="${empty album.artist and empty album.albumTitle}">
<div class="detail"><fmt:message key="common.unknown"/></div>
</c:when>
<c:otherwise>
<div class="detail"><em><str:truncateNicely lower="15" upper="15">${album.artist}</str:truncateNicely></em></div>
<div class="detail">
:)
<str:truncateNicely lower="15" upper="15">${album.albumTitle}</str:truncateNicely></div>
</c:otherwise>
</c:choose>
I put a smiley at the line that we are going to insert this code:
- Code: Select all
<c:import url="playAddDownload.jsp">
<c:param name="path" value="${album.path}"/>
<c:param name="video" value="false"/>
<c:param name="playEnabled" value="true"/>
<c:param name="addEnabled" value="false"/>
<c:param name="downloadEnabled" value="false}"/>
<c:param name="asTable" value="false"/>
</c:import>
Note: When trying to play a video, it will stop the currently playing song, and clear your playlist. I wasn't able to tell it to detect if the child files are videos.
Hope this helps!
