aboutsummaryrefslogtreecommitdiff
path: root/subsonic-main/src/main/webapp/WEB-INF/jsp/podcast.jsp
diff options
context:
space:
mode:
Diffstat (limited to 'subsonic-main/src/main/webapp/WEB-INF/jsp/podcast.jsp')
-rw-r--r--subsonic-main/src/main/webapp/WEB-INF/jsp/podcast.jsp26
1 files changed, 26 insertions, 0 deletions
diff --git a/subsonic-main/src/main/webapp/WEB-INF/jsp/podcast.jsp b/subsonic-main/src/main/webapp/WEB-INF/jsp/podcast.jsp
new file mode 100644
index 00000000..6f2b88d8
--- /dev/null
+++ b/subsonic-main/src/main/webapp/WEB-INF/jsp/podcast.jsp
@@ -0,0 +1,26 @@
+<%@ include file="include.jsp" %>
+<%@ page language="java" contentType="text/xml; charset=utf-8" pageEncoding="iso-8859-1"%>
+
+<rss version="2.0">
+ <channel>
+ <title>Subsonic Podcast</title>
+ <link>${model.url}</link>
+ <description>Subsonic Podcast</description>
+ <language>en-us</language>
+ <image>
+ <url>http://subsonic.org/pages/inc/img/subsonic.png</url>
+ <title>Subsonic Podcast</title>
+ </image>
+
+ <c:forEach var="podcast" items="${model.podcasts}">
+ <item>
+ <title>${fn:escapeXml(podcast.name)}</title>
+ <link>${model.url}</link>
+ <description>Subsonic playlist "${fn:escapeXml(podcast.name)}"</description>
+ <pubDate>${podcast.publishDate}</pubDate>
+ <enclosure url="${podcast.enclosureUrl}" length="${podcast.length}" type="${podcast.type}"/>
+ </item>
+ </c:forEach>
+
+ </channel>
+</rss>