aboutsummaryrefslogtreecommitdiff
path: root/subsonic-main/src/main/webapp/WEB-INF/jsp/xspfPlaylist.jsp
diff options
context:
space:
mode:
Diffstat (limited to 'subsonic-main/src/main/webapp/WEB-INF/jsp/xspfPlaylist.jsp')
-rw-r--r--subsonic-main/src/main/webapp/WEB-INF/jsp/xspfPlaylist.jsp30
1 files changed, 30 insertions, 0 deletions
diff --git a/subsonic-main/src/main/webapp/WEB-INF/jsp/xspfPlaylist.jsp b/subsonic-main/src/main/webapp/WEB-INF/jsp/xspfPlaylist.jsp
new file mode 100644
index 00000000..4ee8fb46
--- /dev/null
+++ b/subsonic-main/src/main/webapp/WEB-INF/jsp/xspfPlaylist.jsp
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="utf-8"?>
+<%@ include file="include.jsp" %>
+<%@ page language="java" contentType="text/xml; charset=utf-8" pageEncoding="iso-8859-1" %>
+
+<playlist version="0" xmlns="http://xspf.org/ns/0/">
+ <trackList>
+
+<c:forEach var="song" items="${model.songs}">
+
+ <sub:url value="/stream" var="streamUrl">
+ <sub:param name="path" value="${song.musicFile.path}"/>
+ </sub:url>
+
+ <sub:url value="coverArt.view" var="coverArtUrl">
+ <sub:param name="size" value="200"/>
+ <c:if test="${not empty song.coverArtFile}">
+ <sub:param name="path" value="${song.coverArtFile.path}"/>
+ </c:if>
+ </sub:url>
+
+ <track>
+ <location>${streamUrl}</location>
+ <image>${coverArtUrl}</image>
+ <annotation>${song.musicFile.metaData.artist} - ${song.musicFile.title}</annotation>
+ </track>
+
+</c:forEach>
+
+ </trackList>
+</playlist> \ No newline at end of file