{Email}[podcast_reader at kulesolutions.com]
A example gem for reading podcast rss feeds
require'podcast_reader'pr = PodcastReader.new('http://feeds.feedburner.com/david_guetta') pr.titlepr.descriptionpr.titlepr.descriptionpr.languagepr.last_build_datepr.site_linkpr.image_url# url to podcast imagepr.image_titlepr.image_linkpr.authorpr.subtitlepr.summarypr.publish_datepr.keywords# array of keywordspr.explicit?# true/false or nil if not listedpr.download_image_to('./podcast_image.jpg') # save podcast image to given pathpr.updated_since(Time.now) # check if podcast has been updated since the given timepr.items.sizeitem = pr.items.firstitem.titleitem.descriptionitem.categoryitem.authoritem.subtitleitem.summaryitem.durationitem.url# url to trackitem.content_typeitem.file_sizeitem.download_to('./podcast_track.mp3') # download podcast item/track to given path
Nokogiri$ gem install podcast_reader
Copyright © 2012 Luke Pearce
See LICENSE.txt for details.