2020-10-09 05:36:03 -04:00
|
|
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
2020-10-09 06:26:18 -04:00
|
|
|
<!-- Import include files -->
|
|
|
|
<xsl:include href="includes/page.xsl"/>
|
|
|
|
<xsl:include href="includes/mountnav.xsl"/>
|
2014-12-29 10:32:52 -05:00
|
|
|
|
2020-10-09 06:26:18 -04:00
|
|
|
<xsl:variable name="title">Update Metadata</xsl:variable>
|
2014-12-29 10:32:52 -05:00
|
|
|
|
2020-10-09 06:26:18 -04:00
|
|
|
<xsl:template name="content">
|
|
|
|
<div class="section">
|
|
|
|
<h2><xsl:value-of select="$title" /></h2>
|
2014-12-29 10:32:52 -05:00
|
|
|
|
2020-10-09 06:26:18 -04:00
|
|
|
<xsl:for-each select="source">
|
|
|
|
<section class="box">
|
|
|
|
<h3 class="box_title">Mountpoint <code><xsl:value-of select="@mount" /></code></h3>
|
|
|
|
<!-- Mount nav -->
|
|
|
|
<xsl:call-template name="mountnav" />
|
|
|
|
<h4>Update Metadata</h4>
|
|
|
|
<xsl:if test="content-type and not((content-type = 'application/mpeg') or (content-type = 'audio/aac') or (content-type = 'audio/aacp'))">
|
|
|
|
<aside class="warning">
|
|
|
|
<strong>Warning</strong>
|
|
|
|
This is only supported for legacy codecs using ICY as transport such as MP3 and AAC.
|
|
|
|
</aside>
|
|
|
|
</xsl:if>
|
|
|
|
<form method="post" action="/admin/metadata.xsl">
|
|
|
|
<input type="hidden" name="mount" value="{@mount}" />
|
|
|
|
<input type="hidden" name="mode" value="updinfo" />
|
|
|
|
<input type="hidden" name="charset" value="UTF-8" />
|
2020-10-01 10:52:08 -04:00
|
|
|
|
2020-10-09 06:26:18 -04:00
|
|
|
<label for="metadata" class="hidden">Metadata:</label>
|
|
|
|
<input type="text" id="metadata" name="song" value="" placeholder="Click to edit" required="required" />
|
|
|
|
 
|
|
|
|
<input type="submit" value="Update Metadata" />
|
|
|
|
</form>
|
|
|
|
</section>
|
|
|
|
</xsl:for-each>
|
2014-12-29 10:32:52 -05:00
|
|
|
|
2020-10-09 06:26:18 -04:00
|
|
|
</div>
|
|
|
|
</xsl:template>
|
2018-05-05 02:40:25 -04:00
|
|
|
</xsl:stylesheet>
|