From 08c00bb4c3b2def6835ac32ce7397b2ba941ff75 Mon Sep 17 00:00:00 2001
From: ale <ale@incal.net>
Date: Sun, 17 Nov 2013 00:31:36 +0000
Subject: [PATCH] update the icecast status xslt template

---
 debian/radioai.xsl | 36 ++++++++++++++++++------------------
 debian/rules       |  2 +-
 2 files changed, 19 insertions(+), 19 deletions(-)

diff --git a/debian/radioai.xsl b/debian/radioai.xsl
index 9e547458..a24302be 100644
--- a/debian/radioai.xsl
+++ b/debian/radioai.xsl
@@ -1,19 +1,19 @@
-<xsl:stylesheet xmlns:xsl = "http://www.w3.org/1999/XSL/Transform" version = "1.0" >
-<xsl:template match = "/icestats" >
-
-<config>
-
-<xsl:for-each select="source">
-  <mount>
-    <title><xsl:value-of select="@mount" /></title>
-    <name><xsl:value-of select="name" /></name>
-    <listeners><xsl:value-of select="listeners" /></listeners>
-    <bitrate><xsl:value-of select="bitrate" /></bitrate>
-    <url><xsl:value-of select="url" /></url>
-  </mount>
-</xsl:for-each>
-
-</config>
-
-</xsl:template>
+<xsl:stylesheet version="1.0"
+  xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+  <xsl:output method="xml"></xsl:output>
+  <xsl:template match="/icestats">
+<status>
+    <xsl:for-each select="source">
+    <mount>
+    <xsl:attribute name="name"><xsl:value-of select="@mount"></xsl:value-of></xsl:attribute>
+      <listeners><xsl:value-of select="listeners"></xsl:value-of></listeners>
+      <bitrate><xsl:value-of select="bitrate"></xsl:value-of></bitrate>
+      <quality><xsl:value-of select="quality"></xsl:value-of></quality>
+      <video-quality><xsl:value-of select="video_quality"></xsl:value-of></video-quality>
+      <frame-size><xsl:value-of select="frame_size"></xsl:value-of></frame-size>
+      <frame-rate><xsl:value-of select="frame_rate"></xsl:value-of></frame-rate>
+    </mount>
+    </xsl:for-each>
+</status>
+  </xsl:template>
 </xsl:stylesheet>
diff --git a/debian/rules b/debian/rules
index b0031679..7b6a62ba 100755
--- a/debian/rules
+++ b/debian/rules
@@ -66,4 +66,4 @@ override_dh_install:
 	# Icecast2 status XSL template.
 	install -d -m 755 -o root -g root $(DESTDIR)/usr/share/icecast2/web
 	install -m 644 -o root -g root $(CURDIR)/debian/radioai.xsl \
-		$(DESTDIR)/usr/share/icecast2/web/radioai.xsl
+		$(DESTDIR)/usr/share/icecast2/web/status-radioai.xsl
-- 
GitLab