This repository was archived by the owner on Dec 27, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathepisodes.rss.erb
More file actions
60 lines (56 loc) · 3.23 KB
/
episodes.rss.erb
File metadata and controls
60 lines (56 loc) · 3.23 KB
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
60
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:psc="http://podlove.org/simple-chapters" version="2.0">
<channel>
<title><%= @podcast.title %></title>
<link><%= @podcast.website %></link>
<atom:link rel="self" href="<%= @podcast.feed_url(@format) %>" type="application/rss+xml" title="<%= @format.file_ext.upcase %> Audio"/>
<% @podcast.other_formats(@format).each do |format| %>
<atom:link rel="alternate" href="<%= @podcast.feed_url(format) %>" type="application/rss+xml" title="<%= format.file_ext.upcase %> Audio"/>
<% end %>
<atom:link rel="payment" href="<%= @podcast.flattr_auto_submit_link%>" />
<language><%= @podcast.language %></language>
<generator>gst-kitchen</generator>
<copyright><%= @podcast.author %>, cc-by-nc-sa</copyright>
<itunes:subtitle><%= @podcast.subtitle %></itunes:subtitle>
<itunes:author><%= @podcast.author %></itunes:author>
<managingEditor><%= @podcast.email %> (<%= @podcast.author %>)</managingEditor>
<itunes:summary><%= @podcast.summary %></itunes:summary>
<itunes:explicit><%= @podcast.explicit ? "yes" : "no" %></itunes:explicit>
<description><%= @podcast.summary %></description>
<itunes:owner>
<itunes:name><%= @podcast.author %></itunes:name>
<itunes:email><%= @podcast.email %></itunes:email>
</itunes:owner>
<itunes:image href="<%= @podcast.cover_url %>"/>
<itunes:category text="Technology"/>
<itunes:category text="Technology">
<itunes:category text="Gadgets"/>
</itunes:category>
<itunes:category text="Technology">
<itunes:category text="Tech News"/>
</itunes:category>
<% @podcast.episodes.each do |episode| %>
<item>
<title><%= CGI.escape_html episode.title %></title>
<itunes:explicit><%= @podcast.explicit ? "yes" : "no" %></itunes:explicit>
<itunes:author><%= @podcast.author %></itunes:author>
<itunes:subtitle><%= CGI.escape_html episode.title %></itunes:subtitle>
<enclosure url="<%= @podcast.episode_media_url(episode, @format) %>" length="<%= episode.media[@format.format]["size"] %>" type="<%= @format.mime_type %>"/>
<guid isPermaLink="false"><%= episode.handle %></guid>
<pubDate><%= episode.rfc_2822_date %></pubDate>
<itunes:duration><%= episode.duration %></itunes:duration>
<itunes:summary><![CDATA[<%= episode.summary %>]]></itunes:summary>
<description><![CDATA[<%= render_as_markdown episode.summary %>]]></description>
<atom:link rel="http://podlove.org/deep-link" href="<%= @podcast.deep_link_url(episode) %>" />
<atom:link rel="payment" href="<%= episode.flattr_auto_submit_link%>" />
<% unless episode.chapters.nil? %>
<psc:chapters>
<% episode.chapters.each do |chapter| %>
<psc:chapter start="<%= chapter.start %>" title="<%= CGI.escape_html chapter.title %>" />
<% end %>
</psc:chapters>
<% end %>
</item>
<% end %>
</channel>
</rss>