comparison gpp/templates/podcast/feed.xml @ 1:dbd703f7d63a

Initial import of sg101 stuff from private repository.
author gremmie
date Mon, 06 Apr 2009 02:43:12 +0000
parents
children 1ed461fd2030
comparison
equal deleted inserted replaced
0:900ba3c7b765 1:dbd703f7d63a
1 <?xml version="1.0" encoding="UTF-8"?>
2 <rss version="2.0"
3 xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
4 xmlns:atom="http://www.w3.org/2005/Atom">
5 <channel>
6 {% if channel %}
7 <atom:link href="{{ request.build_absolute_uri }}" rel="self" type="application/rss+xml" />
8 <title>{{ channel.title }}</title>
9 <link>{{ channel.link }}</link>
10 <language>{{ channel.language }}</language>
11 <copyright>{{ channel.copyright }}</copyright>
12 <itunes:subtitle>{{ channel.subtitle }}</itunes:subtitle>
13 <itunes:author>{{ channel.author }}</itunes:author>
14 <itunes:summary>{{ channel.description }}</itunes:summary>
15 <description>{{ channel.description }}</description>
16 <itunes:owner>
17 <itunes:name>{{ channel.owner_name }}</itunes:name>
18 <itunes:email>{{ channel.owner_email }}</itunes:email>
19 </itunes:owner>
20 <itunes:image href="{{ channel.image.url }}" />
21 <itunes:category text="{{ channel.category }}" />
22 <itunes:explicit>{{ channel.explicit }}</itunes:explicit>
23 {% for item in channel.item_set.all %}
24 <item>
25 <title>{{ item.title }}</title>
26 <itunes:author>{{ item.author }}</itunes:author>
27 <itunes:subtitle>{{ item.subtitle }}</itunes:subtitle>
28 <itunes:summary>{{ item.summary }}</itunes:summary>
29 <enclosure url="{{ item.enclosure_url }}" length="{{ item.enclosure_length }}" type="{{ item.enclosure_type }}" />
30 <guid>{{ item.enclosure_url }}</guid>
31 <pubDate>{{ item.pubdate|date:"D, d M Y H:i:s O" }}</pubDate>
32 <itunes:duration>{{ item.duration }}</itunes:duration>
33 <itunes:keywords>{{ item.keywords }}</itunes:keywords>
34 <itunes:explicit>{{ item.explicit }}</itunes:explicit>
35 </item>
36 {% endfor %}
37 {% endif %}
38 </channel>
39 </rss>