|
1 | 1 | xml.instruct! :xml, :version => "1.0"
|
2 | 2 | xml.rss :version => "2.0", "xmlns:itunes" => "http://www.itunes.com/dtds/Podcast-1.0.dtd" do
|
3 | 3 | xml.channel do
|
4 |
| - xml.title full_title "" |
| 4 | + xml.title full_title "" |
5 | 5 | xml.description full_description ""
|
6 |
| - xml.link root_url |
7 |
| - xml.author @author |
8 |
| - xml.copyright "Copyright © 2012-2018 一般社団法人 CoderDojo Japan" |
9 |
| - xml.language "ja" |
| 6 | + xml.link root_url |
| 7 | + xml.author @author |
| 8 | + xml.copyright "Copyright © 2012-#{@current_year} #{@author}" |
| 9 | + xml.language "ja" |
10 | 10 | xml.itunes :category, :text => "Technology" do
|
11 | 11 | xml.itunes :category, :text => "Software How-To"
|
12 | 12 | xml.itunes :category, :text => "Podcasting"
|
13 | 13 | end
|
14 |
| - xml.itunes :type, "serial" |
| 14 | + xml.itunes :type, "serial" |
15 | 15 | xml.itunes :explicit, "clean"
|
16 | 16 |
|
17 | 17 | @episodes.each do |episode|
|
18 | 18 | xml.item do
|
19 |
| - xml.title episode.title |
20 |
| - xml.author @author |
21 |
| - xml.description episode.description |
22 |
| - xml.link @domainname + episode.url |
23 |
| - xml.guid({:isPermaLink => "false"}, @domainname + episode.url) |
24 |
| - xml.itunes :explicit, "clean" |
25 |
| - xml.pubDate episode.published_at.rfc2822 |
26 |
| - xml.enclosure({:url => @domainname + episode.url + ".mp3", :length => episode.filesize, :type => "audio/mpeg"}) |
27 |
| - xml.itunes :duration, episode.duration |
| 19 | + xml.title episode.title |
| 20 | + xml.author @author |
| 21 | + xml.description episode.description |
| 22 | + xml.link "#{@base_url}#{episode.url}" |
| 23 | + xml.guid({:isPermaLink => "false"}, "#{@base_url}#{episode.url}") |
| 24 | + xml.itunes :explicit, "clean" |
| 25 | + xml.published_at episode.published_at.rfc2822 |
| 26 | + xml.enclosure({ |
| 27 | + :url => "#{@base_url}#{episode.url}.mp3", |
| 28 | + :length => episode.filesize, |
| 29 | + :type => "audio/mpeg"} |
| 30 | + ) |
| 31 | + xml.itunes :duration, episode.duration |
28 | 32 | end
|
29 | 33 | end
|
30 | 34 | end
|
|
0 commit comments