From 0bd0c6c1f2825015c63f53932db2ad274d122346 Mon Sep 17 00:00:00 2001 From: payload Date: Mon, 15 Oct 2012 23:18:24 +0200 Subject: [PATCH] added feed support for multiple formats; Pentacast OGG feed as an example; more todo --- Makefile | 12 ++++++++++-- content/pages/podcast.xml | 11 +++-------- content/pages/warez.xml | 3 +++ content/static/style/default.css | 4 ++-- xsl/podcast.xsl | 19 ++++++++----------- 5 files changed, 26 insertions(+), 23 deletions(-) diff --git a/Makefile b/Makefile index cd48a009b..9810a73f6 100644 --- a/Makefile +++ b/Makefile @@ -64,7 +64,8 @@ NEWSFILES:=build/news.html build/news-rss.xml build/news-atom.xml \ build/podcast-archiv.xml build/pentaradio-archiv.xml build/pentacast-archiv.xml \ build/pentamusic-archiv.xml build/pentamedia-archiv.xml \ build/ical.ics build/xcal.xml build/reminders \ - build/datenspuren/$(DS_YEAR)/news-rss.xml build/datenspuren/$(DS_YEAR)/news-atom.xml + build/datenspuren/$(DS_YEAR)/news-rss.xml build/datenspuren/$(DS_YEAR)/news-atom.xml \ + build/pentacast-ogg.xml build/pentacast-ogg-archiv.xml PLAYLISTS:=$(patsubst content/news/pentaradio%.xml, build/news/pentaradio%.xspf, $(wildcard content/news/pentaradio*.xml)) \ $(patsubst content/news/pentaradio%.xml, build/news/pentaradio%.pls, $(wildcard content/news/pentaradio*.xml)) \ $(patsubst content/news/pentaradio%.xml, build/news/pentaradio%.m3u, $(wildcard content/news/pentaradio*.xml)) @@ -130,8 +131,14 @@ build/pentaradio.xml build/pentaradio-archiv.xml : PFLAGS+=--stringparam selecti build/pentaradio.xml build/pentaradio-archiv.xml: xsl/podcast.xsl # Does not work with $(STYLE) - why? build/pentacast.xml build/pentacast-archiv.xml : STYLE=xsl/podcast.xsl build/pentacast.xml build/pentacast-archiv.xml : VFLAGS_OUT=$(VFLAGS) --schema xsd/rss20.xsd -build/pentacast.xml build/pentacast-archiv.xml : PFLAGS+=--stringparam selection pentacast +build/pentacast.xml build/pentacast-archiv.xml : PFLAGS+=--stringparam selection pentacast --stringparam format audio/mpeg build/pentacast.xml build/pentacast-archiv.xml: xsl/podcast.xsl # Does not work with $(STYLE) - why? + +build/pentacast-ogg.xml build/pentacast-ogg-archiv.xml : STYLE=xsl/podcast.xsl +build/pentacast-ogg.xml build/pentacast-ogg-archiv.xml : VFLAGS_OUT=$(VFLAGS) --schema xsd/rss20.xsd +build/pentacast-ogg.xml build/pentacast-ogg-archiv.xml : PFLAGS+=--stringparam selection pentacast --stringparam format audio/ogg +build/pentacast-ogg.xml build/pentacast-ogg-archiv.xml : xsl/podcast.xsl # Does not work with $(STYLE) - why? + build/pentamusic.xml build/pentamusic-archiv.xml : STYLE=xsl/podcast.xsl build/pentamusic.xml build/pentamusic-archiv.xml : VFLAGS_OUT=$(VFLAGS) --schema xsd/rss20.xsd build/pentamusic.xml build/pentamusic-archiv.xml : PFLAGS+=--stringparam selection pentamusic @@ -228,3 +235,4 @@ $(WWW_CCC_DE_UPDATES): $(WWW_CCC_DE_UPDATES).orig .PHONY: clean clean: $(RM) $(CLEAN) news.xml + diff --git a/content/pages/podcast.xml b/content/pages/podcast.xml index 1655249b3..1f7a8fa6b 100644 --- a/content/pages/podcast.xml +++ b/content/pages/podcast.xml @@ -5,18 +5,13 @@

Pentacast ist ein unregelmäßig erscheinender Podcast mit - Konzentration auf ein Thema. Wir freuen uns über Feedback. + Konzentration auf ein Thema. Wir freuen uns über + Feedback.

images/pentacast.png - Die Feeds der C3D2-News (RSS, ATOM) beinhalten die Mitschnitte als Podcasts. - - Daneben gibt es noch - Podcast- - und Pentacast-Feeds, die je - nach Verfügbarkeit die MP3-Versionen enthalten. + Feeds Flattr this!

diff --git a/content/pages/warez.xml b/content/pages/warez.xml index 9b3ac6cbe..b144a2c26 100644 --- a/content/pages/warez.xml +++ b/content/pages/warez.xml @@ -27,6 +27,9 @@ RSS (Archiv-Feed) +
OGG-Feeds
+
Pentacast (Archiv-Feed)
+
MP3-Feeds
Alle Podcasts (Archiv-Feed)
Pentaradio (Archiv-Feed)
diff --git a/content/static/style/default.css b/content/static/style/default.css index 86345fbb2..ca371ce82 100644 --- a/content/static/style/default.css +++ b/content/static/style/default.css @@ -596,7 +596,7 @@ a[href$="news-atom.xml"]:before { } a[href$="podcast.xml"]:before, a[href$="pentaradio.xml"]:before, a[href$="pentacast.xml"]:before, a[href$="pentamusic.xml"]:before, -a[href$="pentamedia.xml"]:before { +a[href$="pentamedia.xml"]:before, a[href="pentacast-ogg.xml"]:before { content: url(../images/mime/feed.png); padding-right: 0.3em; } @@ -767,4 +767,4 @@ a.flattr:hover { article,aside,details,figcaption,figure, footer,header,hgroup,menu,nav,section { display: block; -} \ No newline at end of file +} diff --git a/xsl/podcast.xsl b/xsl/podcast.xsl index de879e082..0526a4147 100644 --- a/xsl/podcast.xsl +++ b/xsl/podcast.xsl @@ -21,6 +21,7 @@ http://www.c3d2.de/ + @@ -179,8 +180,9 @@ + @@ -188,19 +190,13 @@ - - - + + + - - - - - - - + @@ -209,6 +205,7 @@ +