Sha256: e831fc6698db1d1dd21e73191fca4b012e56dbc2240fae4f377767ee922ea0f3

Contents?: true

Size: 669 Bytes

Versions: 14

Compression:

Stored size: 669 Bytes

Contents

module Feedjira
  module Parser
    class Podcast
      include SAXMachine
      include FeedUtilities

      include ::Feedjira::Podcast::Channel::Required
      include ::Feedjira::Podcast::Channel::Optional
      include ::Feedjira::Podcast::Channel::Atom
      include ::Feedjira::Podcast::Channel::Feedburner
      include ::Feedjira::Podcast::Channel::Apple

      elements :item, as: :items, class: PodcastItem

      def self.able_to_parse?(xml)
        # TODO Look several something podcast-specific matches, especially
        # to cover feeds that may not have any items yet
        (/\<rss|\<rdf/ =~ xml) && (/enclosure/ =~ xml)
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
feedjira-podcast-0.9.14 lib/feedjira/parser/podcast.rb
feedjira-podcast-0.9.13 lib/feedjira/parser/podcast.rb
feedjira-podcast-0.9.12 lib/feedjira/parser/podcast.rb
feedjira-podcast-0.9.11 lib/feedjira/parser/podcast.rb
feedjira-podcast-0.9.10 lib/feedjira/parser/podcast.rb
feedjira-podcast-0.9.9 lib/feedjira/parser/podcast.rb
feedjira-podcast-0.9.8 lib/feedjira/parser/podcast.rb
feedjira-podcast-0.9.7 lib/feedjira/parser/podcast.rb
feedjira-podcast-0.9.6 lib/feedjira/parser/podcast.rb
feedjira-podcast-0.9.5 lib/feedjira/parser/podcast.rb
feedjira-podcast-0.9.4 lib/feedjira/parser/podcast.rb
feedjira-podcast-0.9.3 lib/feedjira/parser/podcast.rb
feedjira-podcast-0.9.2 lib/feedjira/parser/podcast.rb
feedjira-podcast-0.9.1 lib/feedjira/parser/podcast.rb