feed.xml.eex 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:itunesu="http://www.itunesu.com/feed" version="2.0">
  3. <channel>
  4. <link><%= @podcast.link %></link>
  5. <language><%= @podcast.language %></language>
  6. <copyright>&#xA9;2022</copyright>
  7. <webMaster><%= @podcast.webmaster %></webMaster>
  8. <managingEditor><%= @podcast.webmaster %></managingEditor>
  9. <image>
  10. <url><%= @podcast.image.url %></url>
  11. <title><%= @podcast.image.title %></title>
  12. <link><%= @podcast.image.link %></link>
  13. </image>
  14. <itunes:owner>
  15. <itunes:name><%= @podcast.owner.name %></itunes:name>
  16. <itunes:email><%= @podcast.owner.email %></itunes:email>
  17. </itunes:owner>
  18. <itunes:category text="<%= @podcast.category %>">
  19. <itunes:category text="<%= @podcast.category %>" />
  20. </itunes:category>
  21. <itunes:keywords><%= "FIXME!!!" %></itunes:keywords>
  22. <itunes:explicit><%= @podcast.explicit %></itunes:explicit>
  23. <itunes:image href="<%= @podcast.image.url %>" />
  24. <atom:link href="http://www.ape-alveare.it/podcast.xml" rel="self" type="application/rss+xml" />
  25. <pubDate><%= @podcast.pubDate |> Calendar.DateTime.Format.rfc2822 %></pubDate>
  26. <title><%= @podcast.title %></title>
  27. <itunes:author>College, school, or department owning the podcast</itunes:author>
  28. <description><%= @podcast.description %></description>
  29. <itunes:summary><%= @podcast.description %></itunes:summary>
  30. <itunes:subtitle><%= @podcast.description %></itunes:subtitle>
  31. <lastBuildDate><%= @podcast.pubDate |> Calendar.DateTime.Format.rfc2822 %></lastBuildDate>
  32. <%= for item <- @items do %>
  33. <item>
  34. <title><%= item.title %></title>
  35. <link><%= item.link %></link>
  36. <pubDate><%= item.pubDate |> Calendar.DateTime.Format.rfc2822 %></pubDate>
  37. <description><%= item.description %></description>
  38. <enclosure url="<%= item.link %>" length="<%= item.length %>" type="audio/mpeg"/>
  39. <guid><%= item.link %></guid>
  40. <itunes:duration><%= item.length |> format_length %></itunes:duration>
  41. <itunes:summary><%= item.summary %></itunes:summary>
  42. <itunes:keywords><%= item.keywords %></itunes:keywords>
  43. <itunes:explicit><%= item.explicit %></itunes:explicit>
  44. </item>
  45. <% end %>
  46. </channel>
  47. </rss>