neingeist
/
neinomaten
Archived
1
0
Fork 0

sendungen nummerieren

master
neingeist 17 years ago
parent 9fa9bf6a75
commit fb19db3dde

@ -97,8 +97,10 @@ end
# Generate RSS # Generate RSS
items = "" items = ""
i = episodes.size
episodes.each do |episode| episodes.each do |episode|
items += ERB.new(TPL_ITEM).result(binding); items += ERB.new(TPL_ITEM).result(binding);
i -= 1
end end
rss = ERB.new(TPL_RSS).result; rss = ERB.new(TPL_RSS).result;

@ -53,7 +53,7 @@ http://entropia.de/wiki/Radio_Chaotica
' '
TPL_ITEM = ' TPL_ITEM = '
<item> <item>
<title><%= CGI::escapeHTML(episode["title"]) %></title> <title><%= i %>. <%= CGI::escapeHTML(episode["title"]) %></title>
<link><%= episode["url"] %></link> <link><%= episode["url"] %></link>
<description><%= CGI::escapeHTML(episode["description"]) %></description> <description><%= CGI::escapeHTML(episode["description"]) %></description>
<category>Talk Radio</category> <category>Talk Radio</category>