Sha256: 2d732498955be02be22d099bcf1acbb63ce198e78ae7d5bc1fe7b8972c0f88ed

Contents?: true

Size: 1.13 KB

Versions: 19

Compression:

Stored size: 1.13 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

      # 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

19 entries across 19 versions & 6 rubygems

Version Path
feedzirra-0.2.1 lib/feedzirra/parser/itunes_rss_item.rb
codders-feedzirra-0.2.0.rc2 lib/feedzirra/parser/itunes_rss_item.rb
feedzirra-0.2.0.rc2 lib/feedzirra/parser/itunes_rss_item.rb
feedzirra-0.2.0.rc1 lib/feedzirra/parser/itunes_rss_item.rb
fandango-0.2.1 lib/vendor/feedzirra/lib/feedzirra/parser/itunes_rss_item.rb
jashmenn-feedzirra-0.1.3 lib/feedzirra/parser/itunes_rss_item.rb
fandango-0.2.0 lib/vendor/feedzirra/lib/feedzirra/parser/itunes_rss_item.rb
fandango-0.1.9 lib/vendor/feedzirra/lib/feedzirra/parser/itunes_rss_item.rb
feedzirra-0.1.3 lib/feedzirra/parser/itunes_rss_item.rb
fandango-0.1.8 lib/vendor/feedzirra/lib/feedzirra/parser/itunes_rss_item.rb
fandango-0.1.7 lib/vendor/feedzirra/lib/feedzirra/parser/itunes_rss_item.rb
fandango-0.1.6 lib/vendor/feedzirra/lib/feedzirra/parser/itunes_rss_item.rb
fandango-0.1.5 lib/vendor/feedzirra/lib/feedzirra/parser/itunes_rss_item.rb
feedzirra-0.1.2 lib/feedzirra/parser/itunes_rss_item.rb
fandango-0.1.4 lib/vendor/feedzirra/lib/feedzirra/parser/itunes_rss_item.rb
seanwalbran-feedzirra-0.1.3 lib/feedzirra/parser/itunes_rss_item.rb
seanwalbran-feedzirra-0.1.2 lib/feedzirra/parser/itunes_rss_item.rb
localist-feedzirra-0.2.1 lib/feedzirra/parser/itunes_rss_item.rb
feedzirra-0.1.1 lib/feedzirra/parser/itunes_rss_item.rb