Sha256: d8a4ab6a05bf7e0f9201861a7947b2ac7c7efa6ca19c75351e9984474f211622

Contents?: true

Size: 872 Bytes

Versions: 21

Compression:

Stored size: 872 Bytes

Contents

xm.item do
  xm.title(item.itunes_subtitle)
  xm.enclosure(
    :url => @blog.file_url(item.filename),
    :length => item.size,
    :type => item.mime)
  xm.pubDate pub_date(item.created_at)
  xm.guid this_blog.file_url(item.filename), "isPermaLink" => "false"
  xm.itunes :author,(item.itunes_author)
  xm.itunes :subtitle,(item.itunes_subtitle)
  xm.itunes :summary,(item.itunes_summary)
  xm.itunes :duration,(item.itunes_duration)
  xm.itunes :keywords,(item.itunes_keywords)
  if item.itunes_explicit?
    xm.itunes :explicit,('yes')
  end
  
  category_list = YAML::load(item.itunes_category)
  category_list.each do |parent_cat,sub_array|
    xm.itunes(:category, 'text' => parent_cat.gsub(/\&/,'&')) do |xm|
      sub_array.each do |sub_cat|
        unless sub_cat.nil?
          xm.itunes :category, :text => sub_cat
        end
      end 
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
typo-5.5 app/views/xml/_itunes_item_resource.xml.builder
typo-5.4.4 app/views/xml/_itunes_item_resource.xml.builder
typo-5.4.3 app/views/xml/_itunes_item_resource.xml.builder
typo-5.4.2 app/views/xml/_itunes_item_resource.xml.builder
typo-5.4.1 app/views/xml/_itunes_item_resource.xml.builder
typo-5.4 app/views/xml/_itunes_item_resource.xml.builder
typo-4.1.1 app/views/xml/_itunes_item_resource.rxml
typo-5.0.1 app/views/xml/_itunes_item_resource.xml.builder
typo-5.0.2 app/views/xml/_itunes_item_resource.xml.builder
typo-4.1 app/views/xml/_itunes_item_resource.rxml
typo-5.0.3.98.1 app/views/xml/_itunes_item_resource.xml.builder
typo-5.0.3.98 app/views/xml/_itunes_item_resource.xml.builder
typo-5.0 app/views/xml/_itunes_item_resource.xml.builder
typo-5.1.2 app/views/xml/_itunes_item_resource.xml.builder
typo-5.1.1 app/views/xml/_itunes_item_resource.xml.builder
typo-5.1.3 app/views/xml/_itunes_item_resource.xml.builder
typo-5.1 app/views/xml/_itunes_item_resource.xml.builder
typo-5.1.98 app/views/xml/_itunes_item_resource.xml.builder
typo-5.2.98 app/views/xml/_itunes_item_resource.xml.builder
typo-5.2 app/views/xml/_itunes_item_resource.xml.builder