Sha256: cfce6a2b85de0836b57ebf97e51dd93bdbca0c3b570dbd9d79c7638773196e51

Contents?: true

Size: 1.18 KB

Versions: 4

Compression:

Stored size: 1.18 KB

Contents

module Feedzirra
  
  module Parser
    # iTunes extensions to the standard RSS2.0 item
    # Source: http://www.apple.com/itunes/whatson/podcasts/specs.html
    class ITunesRSSItem
      include SAXMachine
      include FeedEntryUtilities
      element :author
      element :guid
      element :title
      element :link, :as => :url
      element :description, :as => :summary
      element :pubDate, :as => :published
      element :"content:encoded", :as => :content

      # If author is not present use author tag on the item
      element :"itunes:author", :as => :itunes_author
      element :"itunes:block", :as => :itunes_block
      element :"itunes:duration", :as => :itunes_duration
      element :"itunes:explicit", :as => :itunes_explicit
      element :"itunes:keywords", :as => :itunes_keywords
      element :"itunes:subtitle", :as => :itunes_subtitle
      # If summary is not present, use the description tag
      element :"itunes:summary", :as => :itunes_summary
      element :enclosure, :value => :length, :as => :enclosure_length
      element :enclosure, :value => :type, :as => :enclosure_type
      element :enclosure, :value => :url, :as => :enclosure_url
    end
  end
  
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
astro-feedzirra-0.0.12 lib/feedzirra/parser/itunes_rss_item.rb
julien51-feedzirra-0.0.13 lib/feedzirra/parser/itunes_rss_item.rb
julien51-feedzirra-0.0.14 lib/feedzirra/parser/itunes_rss_item.rb
julien51-feedzirra-0.0.16 lib/feedzirra/parser/itunes_rss_item.rb