datenspuren mitschnitte: link to media.ccc.de for playback

This commit is contained in:
Astro 2015-10-26 00:36:19 +01:00
parent 3a5a557836
commit faf20cc7a5
1 changed files with 7 additions and 1 deletions

View File

@ -269,6 +269,8 @@
<xsl:for-each select="feed[1]">
<xsl:for-each select="document(.)/rss/channel/item">
<xsl:variable name="identifier" select="dc:identifier"/>
<xsl:variable name="slug"
select="substring-before(substring-after(description, 'event on media: //media.ccc.de/'), '.html')"/>
<xsl:variable name="title" select="substring-after(title, ': ')"/>
<xsl:variable name="preview"
select="concat('https://static.media.ccc.de/media/events/datenspuren/2015/',
@ -276,7 +278,11 @@
'-sd_preview.jpg')"/>
<section class="resource">
<h4><xsl:value-of select="$title"/></h4>
<h4>
<a href="https://media.ccc.de/v/{$slug}">
<xsl:value-of select="$title"/>
</a>
</h4>
<div class="preview">
<img src="{$preview}" title="$title"/>
</div>