-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathitunes.xml.tpl
59 lines (51 loc) · 2.15 KB
/
itunes.xml.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
<channel>
<title>{{ titulo }}</title>
<link>{{ link }}</link>
<description>{{ descripcion }}</description>
<itunes:summary>{{ descripcion }}</itunes:summary>
<itunes:author>{{ autor }}</itunes:author>
<itunes:owner>
<itunes:name>{{ autor }}</itunes:name>
<itunes:email>{{ editor_email }}</itunes:email>
</itunes:owner>
{% for category in itunes_categories %}
<itunes:category text="{{ category.0 }}">{% if category.1 %}<itunes:category text="{{ category.1 }}"/>{% endif %}</itunes:category>
{% endfor %}
<language>{{ lenguaje }}</language>
<ttl>{{ ttl_minutos }}</ttl>
<lastBuildDate>{{ ultima_compilacion }}</lastBuildDate>
<image>
<title>{{ imagen_titulo }}</title>
<url>{{ imagen_url }}</url>
<link>{{ imagen_link }}</link>
</image>
<itunes:image href="{{ imagen_url }}" />
<itunes:explicit>No</itunes:explicit>
{% if webmaster_email %}
<webMaster>{{ webmaster_email }}</webMaster>
{% endif %}
{% if editor_email %}
<managingEditor>{{ editor_email }}</managingEditor>
{% endif %}
{% for item in episodios %}
<item>
<title>{{ item.titulo }}</title>
<guid>{{ item.guid }}</guid>
<link>{{ item.link }}</link>
<pubDate>{{ item.fecha_publicacion }}</pubDate>
<description><![CDATA[{{ item.descripcion }}
{% if item.ideas %}
<br />Ideas: <ul>{% for idea in item.ideas %}
<li>{{ idea }}</li>{% endfor %}
</ul>{% endif %}]]>
</description>
<itunes:summary>{{ item.descripcion }}</itunes:summary>
{# aqui va la URL al audio, lo importante #}
<enclosure url="{{ item.url_audio }}" length="{{ item.audio_size_bytes }}" type="audio/mpeg"/>
<itunes:image href="{{ item.url_imagen }}" />
</item>
{% endfor %}
</channel>
</rss>