Linn Radio Feed
From LinnDocs
A Linn Radio Feed (LRF) is an XML file that contains a list of internet radio stations.
LRF is designed to be to internet radio stations what RSS is to news.
The Radio plugin for KinskyDesktop is able to read LRF files, making the contained radio stations available to a DS or UPnP Media Renderer.
This document will be of interest to:
- Those interested in publishing a list of radio stations in the Linn Radio Feed format
- Control point designers wanting to support the Linn Radio Feed format
The Linn Radio Feed (LRF) format
The LRF icon is permanently available here: http://oss.linn.co.uk/Feeds/Radio/Lrf.png
The LRF Schema is permanently available here: http://oss.linn.co.uk/Feeds/Radio/LinnRadioFeed.xsd
Here is an example LRF file:
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet
type="text/xsl"
href="http://oss.linn.co.uk/Feeds/Radio/LinnRadioFeed.xsl"?>
<radiofeed xmlns="http://oss.linn.co.uk/Feeds/Radio"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://oss.linn.co.uk/Feeds/Radio
http://oss.linn.co.uk/Feeds/Radio/LinnRadioFeed.xsd">
<title>Linn Recommends</title>
<link>http://www.linn.co.uk</link>
<logo>http://oss.linn.co.uk/Feeds/Radio/Linn.png</logo>
<guid>urn:oss-linn-co-uk:feeds:radio:linn:recommends</guid>
<updated>2009-05-12T00:00:00Z</updated>
<station>
<title>WFMU</title>
<link>http://www.wfmu.org</link>
<logo>http://oss.linn.co.uk/Feeds/Radio/Wfmu.png</logo>
<guid>urn:oss-linn-co-uk:feeds:radio:linn:recommends:wfmu</guid>
<description>Independent freeform radio.</description>
<category>Mixed</category>
<audio>
<uri>http://mp3stream.wfmu.org</uri>
<type>audio/mpeg</type>
<bitrate>128</bitrate>
</audio>
<location>
<country>US</country>
<region>New Jersey</region>
<longitude>-74.0476</longitude>
<latitude>40.7198</latitude>
</location>
</station>
<station>
<title>Resonance104.4fm</title>
<link>http://resonancefm.com</link>
<logo>http://resonancefm.com/shop/img/logo.jpg</logo>
<guid>urn:oss-linn-co-uk:feeds:radio:linn:recommends:resonance</guid>
<description>The art of listening.</description>
<category>Experimental</category>
<audio>
<uri>http://icecast.commedia.org.uk:8000/resonance_hi.mp3</uri>
<type>audio/mpeg</type>
<bitrate>128</bitrate>
</audio>
<location>
<country>GB</country>
<region>London</region>
<longitude>-0.0923</longitude>
<latitude>51.5024</latitude>
</location>
</station>
</radiofeed>
Yhe Linn Radio Feed website for the above LRF file can be viewed here.
Transformation Tools
http://oss.linn.co.uk/Feeds/Radio/LinnRadioFeedRss.xsl is an XSLT file that will transform an LRF file into an RSS feed.
http://oss.linn,co,uk/Feeds/Radio/LinnRadioFeedXhtml.xsl is an XLST file that will transform an LRF file into an XHTML web page according to the standard presentation for Linn Radio Feed web pages. This transformation requires that you pass in the following XSLT parameters:
- lrf - relative uri to an associated LRF file
- rss - relative uri to an associated RSS file.
Xslt.exe is a cross-platform tool that is able to apply these transformations, although other XSLT processors are available.