We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 8f9194f7 authored by tobyink's avatar tobyink

Experiments in RSS 1.0...

parent 26dacf31
......@@ -12,6 +12,8 @@
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:sioc="http://rdfs.org/sioc/ns#"
xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
xmlns:rss="http://purl.org/rss/1.0/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xml:lang="en">
<head profile="http://www.w3.org/1999/xhtml/vocab http://purl.org/uF/2008/03/ http://purl.org/uF/hAudio/0.9/">
......
......@@ -50,12 +50,14 @@
</dl>
{/if}
<h3>Latest {$scrobbles|@count} Plays:</h3>
<div about="_:seq1" typeof="rdf:Seq" rev="rss:items">
<h3 typeof="rss:channel" property="rss:title" rel="rss:link" resource="#latest_plays" id="latest_plays">Latest {$scrobbles|@count} Plays:</h3>
</div>
<ul class="gobbles" about="{$id|escape:'html':'UTF-8'}" rev="gob:user">
{section name=i loop=$scrobbles}
<li about="{$scrobbles[i].id|escape:'html':'UTF-8'}" typeof="gob:ScrobbleEvent" rel="gob:track_played">
<li about="{$scrobbles[i].id|escape:'html':'UTF-8'}" typeof="rss:item gob:ScrobbleEvent" rel="gob:track_played">
<div about="{$scrobbles[i].id_track|escape:'html':'UTF-8'}" typeof="mo:Track" class="haudio">
<div rev="mo:track">
<div about="{$scrobbles[i].id_album|escape:'html':'UTF-8'}" typeof="mo:Record"{if $scrobbles[i].album} property="dc:title" content="{$scrobbles[i].album|escape:'html':'UTF-8'}"{/if}>
......@@ -74,6 +76,8 @@
<div><a class="fn" property="dc:title" rel="foaf:page" href="{$scrobbles[i].trackurl|escape:'html':'UTF-8'}">{$scrobbles[i].track|escape:'html':'UTF-8'}</a></div>
<small about="{$scrobbles[i].id|escape:'html':'UTF-8'}" property="dc:date" content="{$scrobbles[i].timeiso}" datatype="xsd:dateTime">{$scrobbles[i].timehuman}</small>
</div>
<span property="rss:title" content="Played {$scrobbles[i].track|escape:'html':'UTF-8'} by {$scrobbles[i].artist|escape:'html':'UTF-8'}" rev="rdf:_{$smarty.section.i.index}" resource="_:seq1"></span>
<span property="rss:description" content="{if $scrobbles[i].album}{$scrobbles[i].album}{/if}"></span>
</li>
{/section}
</ul>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment