librefm-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Librefm-commits] [1671] template for the new xspf radio playlists to be


From: Clint Adams
Subject: [Librefm-commits] [1671] template for the new xspf radio playlists to be generated by the radio. getPlayList WS method
Date: Sat, 16 May 2009 19:02:55 +0000

Revision: 1671
          http://svn.sv.gnu.org/viewvc/?view=rev&root=librefm&revision=1671
Author:   clint
Date:     2009-05-16 19:02:55 +0000 (Sat, 16 May 2009)
Log Message:
-----------
template for the new xspf radio playlists to be generated by the 
radio.getPlayList WS method

Added Paths:
-----------
    trunk/nixtape/themes/librefm/templates/radio_xspf.tpl

Added: trunk/nixtape/themes/librefm/templates/radio_xspf.tpl
===================================================================
--- trunk/nixtape/themes/librefm/templates/radio_xspf.tpl                       
        (rev 0)
+++ trunk/nixtape/themes/librefm/templates/radio_xspf.tpl       2009-05-16 
19:02:55 UTC (rev 1671)
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="utf-8"?>
+<lfm status="ok">
+<playlist version="1" xmlns="http://xspf.org/ns/0/";>
+<title>{$title}</title>
+<creator>libre.fm</creator>
+<date>{$date}</date>
+<link rel="http://www.last.fm/expiry";>3600</link>
+<trackList>
+
+{section name=rt loop=$radiotracks}
+       <track>
+           
<location>{$radiotracks[rt].location|escape:"html":"UTF-8"}</location>
+           <title>{$radiotracks[rt].title|escape:"html":"UTF-8"}</title>
+           <identifier>{$radiotracks[rt].id|escape:"html":"UTF-8"}</identifier>
+           <album>{$radiotracks[rt].album|escape:"html":"UTF-8"}</album>
+           <creator>{$radiotracks[rt].creator|escape:"html":"UTF-8"}</creator>
+           
<duration>{$radiotracks[rt].duration|escape:"html":"UTF-8"}</duration>
+           <image>{$radiotracks[rt].image|escape:"html":"UTF-8"}</image>
+           <extension application="http://alpha.libre.fm/";>
+               <trackauth>00000</trackauth>
+               <albumid>00000</albumid>
+               <artistid>00000</artistid>
+               <recording>00000</recording>
+               
<artistpage>{$radiotracks[rt].artisturl|escape:"html":"UTF-8"}</artistpage>
+               
<albumpage>{$radiotracks[rt].albumurl|escape:"html":"UTF-8"}</albumpage>
+               
<trackpage>{$radiotracks[rt].trackurl|escape:"html":"UTF-8"}</trackpage>
+               <buyTrackURL></buyTrackURL>
+               <buyAlbumURL></buyAlbumURL>
+               
<freeTrackURL>{$radiotracks[rt].downloadurl|escape:"html":"UTF-8"}</freeTrackURL>
+           </extension>
+       </track>
+{/section}
+
+</trackList>
+</playlist>
+</lfm>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]