Permalink
Browse files

Update feed to hopefully be more compatible with iTunes

  • Loading branch information...
excid3 committed Dec 22, 2012
1 parent 43359ac commit 01d45295a25ca4c0112375e2727379b47efcf88b
Showing with 2 additions and 2 deletions.
  1. +2 −2 app/views/podcasts/index.rss.builder
@@ -35,9 +35,9 @@ xml.rss "xmlns:itunes" => "http://www.itunes.com/dtds/podcast-1.0.dtd", "xmlns:
xml.title podcast.name
xml.description podcast.description
xml.pubDate podcast.created_at.to_s(:rfc822)
- xml.enclosure :url => go_podcast_url(podcast), :length => podcast.audio_file_size, :type => 'audio/mp3'
+ xml.enclosure :url => "#{request.protocol}#{request.host_with_port}/#{podcast.audio.url}", :length => podcast.audio_file_size, :type => 'audio/mp3'
xml.link podcast_url(podcast)
- xml.guid({:isPermaLink => "false"}, podcast_url(podcast))
+ xml.guid({:isPermaLink => "false"}, podcast.name.parameterize)
xml.itunes :author, author
xml.itunes :subtitle, truncate(podcast.description, :length => 150)
xml.itunes :summary, podcast.description

0 comments on commit 01d4529

Please sign in to comment.