Changeset 1185
- Timestamp:
- 07/11/08 21:51:29 (6 months ago)
- Files:
-
- trunk/app/views/podcasts/feed.rxml (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/app/views/podcasts/feed.rxml
r1009 r1185 5 5 xml.description @podcast.description 6 6 xml.lastBuildDate @podcast.date 7 7 8 8 for document in @podcast.documents 9 xml.item do 10 xml.title document.title 11 xml.author document.author.name 12 xml.itunes :duration, document.length 13 xml.itunes :keywords, document.tags[0..11].join(",") 14 xml.description document.description 9 cast = document.casts.first 10 next if cast.nil? 15 11 16 cast = document.casts.first 12 xml.item do 13 xml.title document.title 14 xml.author document.author.name 15 xml.itunes :duration, document.length 16 xml.itunes :keywords, document.tags[0..11].join(",") 17 xml.description document.description 18 17 19 cast_url = url_for(:controller => 'casts', :action => 'play', :name => cast.name, :only_path => false) + ".mp3" 18 20 19 21 xml.enclosure :url => cast_url, :length => cast.size, :type => "audio/mpeg" 20 22 xml.guid cast_url 21 23 xml.pubDate document.updated_at.strftime("%a, %e %b %Y %T %Z") 22 end24 end 23 25 end 24 26 end
