Created
June 9, 2012 15:47
-
-
Save geta6/2901509 to your computer and use it in GitHub Desktop.
iTunesのPodCastが認識できるXMLを吐きます
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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