annotate gpp/templates/podcast/feed.xml @ 334:6805d15cda13

Adding a script I had to write on the fly to filter out posts from the posts csv file that had no parent topics. MyISAM let me get away with that, but InnoDB won't.
author Brian Neal <bgneal@gmail.com>
date Sat, 26 Feb 2011 01:28:22 +0000
parents 1ed461fd2030
children 6e425c9b9d16
rev   line source
gremmie@1 1 <?xml version="1.0" encoding="UTF-8"?>
gremmie@1 2 <rss version="2.0"
gremmie@1 3 xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
gremmie@1 4 xmlns:atom="http://www.w3.org/2005/Atom">
gremmie@1 5 <channel>
gremmie@1 6 {% if channel %}
gremmie@1 7 <atom:link href="{{ request.build_absolute_uri }}" rel="self" type="application/rss+xml" />
gremmie@1 8 <title>{{ channel.title }}</title>
gremmie@1 9 <link>{{ channel.link }}</link>
gremmie@1 10 <language>{{ channel.language }}</language>
gremmie@1 11 <copyright>{{ channel.copyright }}</copyright>
gremmie@1 12 <itunes:subtitle>{{ channel.subtitle }}</itunes:subtitle>
gremmie@1 13 <itunes:author>{{ channel.author }}</itunes:author>
gremmie@1 14 <itunes:summary>{{ channel.description }}</itunes:summary>
gremmie@1 15 <description>{{ channel.description }}</description>
bgneal@143 16 <itunes:keywords>{{ channel.keywords }}</itunes:keywords>
gremmie@1 17 <itunes:owner>
gremmie@1 18 <itunes:name>{{ channel.owner_name }}</itunes:name>
gremmie@1 19 <itunes:email>{{ channel.owner_email }}</itunes:email>
gremmie@1 20 </itunes:owner>
gremmie@1 21 <itunes:image href="{{ channel.image.url }}" />
gremmie@1 22 <itunes:category text="{{ channel.category }}" />
gremmie@1 23 <itunes:explicit>{{ channel.explicit }}</itunes:explicit>
gremmie@1 24 {% for item in channel.item_set.all %}
gremmie@1 25 <item>
gremmie@1 26 <title>{{ item.title }}</title>
gremmie@1 27 <itunes:author>{{ item.author }}</itunes:author>
gremmie@1 28 <itunes:subtitle>{{ item.subtitle }}</itunes:subtitle>
gremmie@1 29 <itunes:summary>{{ item.summary }}</itunes:summary>
gremmie@1 30 <enclosure url="{{ item.enclosure_url }}" length="{{ item.enclosure_length }}" type="{{ item.enclosure_type }}" />
gremmie@1 31 <guid>{{ item.enclosure_url }}</guid>
gremmie@1 32 <pubDate>{{ item.pubdate|date:"D, d M Y H:i:s O" }}</pubDate>
gremmie@1 33 <itunes:duration>{{ item.duration }}</itunes:duration>
gremmie@1 34 <itunes:keywords>{{ item.keywords }}</itunes:keywords>
gremmie@1 35 <itunes:explicit>{{ item.explicit }}</itunes:explicit>
gremmie@1 36 </item>
gremmie@1 37 {% endfor %}
gremmie@1 38 {% endif %}
gremmie@1 39 </channel>
gremmie@1 40 </rss>