Skip to content

Instantly share code, notes, and snippets.

@geta6
Created June 9, 2012 15:47
Show Gist options
  • Save geta6/2901509 to your computer and use it in GitHub Desktop.
Save geta6/2901509 to your computer and use it in GitHub Desktop.
iTunesのPodCastが認識できるXMLを吐きます
<?xml version="1.0" encoding="UTF-8" ?>
<rss xmlns:itunes="http://www.itunes.com/DTDs/Podcast-1.0.dtd" version="2.0">
<channel>
<title>PodTest</title>
<link>http://example.com/</link>
<pubDate>{{ 'now' | date('r') }}</pubDate>
<language>ja</language>
<description>ぽどきゃすと</description>
<itunes:author>さくせいしたひと</itunes:author>
{% for feed in feeds %}
<item>
<author>{{ feed.author }}</author>
<description>{{ feed.description }}話</description>
<title>{{ feed.title }}</title>
<pubDate>{{ feed.pubdate | date('r') }}</pubDate>
<enclosure url="{{ feed.path }}" length="{{ feed.length }}" type="{{ feed.mime }}" />
</item>
{% endfor %}
</channel>
</rss>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment