Class: Feedjira::Parser::ITunesRSSItem

Inherits:
Object
  • Object
show all
Includes:
FeedEntryUtilities, RSSEntryUtilities, SAXMachine
Defined in:
lib/feedjira/parser/itunes_rss_item.rb

Overview

iTunes extensions to the standard RSS2.0 item Source: www.apple.com/itunes/whatson/podcasts/specs.html

Constant Summary

Constants included from DateTimeUtilities

DateTimeUtilities::DATE_PARSERS

Instance Method Summary collapse

Methods included from RSSEntryUtilities

#entry_id, #id, included, #url

Methods included from FeedEntryUtilities

#[], #[]=, #each, #id, #parse_datetime, #published, #published=, #sanitize!, #updated=

Methods included from DateTimeUtilities

#parse_datetime

Instance Method Details

#chaptersObject

Podlove requires clients to re-order by start time in the event the publisher doesn't provide them in that order. SAXMachine doesn't have any sort capability afaik, so we have to sort chapters manually.


40
41
42
# File 'lib/feedjira/parser/itunes_rss_item.rb', line 40

def chapters
  raw_chapters.sort_by(&:start)
end