ds17 videos: fix urls + metadata

This commit is contained in:
Astro 2017-10-22 23:02:32 +02:00
parent bee80a0cff
commit 6bf9cf7262
2 changed files with 4 additions and 6 deletions

View File

@ -295,9 +295,9 @@ datenspuren-2016-mp3.xml:
$(WGET) -O $@ https://media.ccc.de/c/ds2016/podcast/mp3.xml
datenspuren-2017-mp4.xml:
$(WGET) -O $@ https://media.ccc.de/c/DS2017/podcast/mp4.xml
$(WGET) -O $@ https://media.ccc.de/c/DS2017/podcast/mp4-hq.xml
datenspuren-2017-webm.xml:
$(WGET) -O $@ https://media.ccc.de/c/DS2017/podcast/webm.xml
$(WGET) -O $@ https://media.ccc.de/c/DS2017/podcast/webm-hq.xml
datenspuren-2017-opus.xml:
$(WGET) -O $@ https://media.ccc.de/c/DS2017/podcast/opus.xml
datenspuren-2017-mp3.xml:

View File

@ -258,15 +258,13 @@
<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-before(title, concat(' (ds', $year, ')'))"/>
<xsl:variable name="title" select="substring-before(title, concat(' (DS', $year, ')'))"/>
<xsl:variable name="preview"
select="concat('https://static.media.ccc.de/media/events/datenspuren/', $year, '/', substring-before(substring-after(link, concat('/DS', $year, '-')), '-'), '-hd.jpg')"/>
<section class="resource">
<h4>
<a href="https://media.ccc.de/v/{$slug}">
<a href="{link}">
<xsl:value-of select="$title"/>
</a>
</h4>