require File.dirname(__FILE__) + '/mrss_credit' require File.dirname(__FILE__) + '/mrss_restriction' require File.dirname(__FILE__) + '/mrss_category' require File.dirname(__FILE__) + '/mrss_copyright' require File.dirname(__FILE__) + '/mrss_hash' require File.dirname(__FILE__) + '/mrss_player' require File.dirname(__FILE__) + '/mrss_rating' require File.dirname(__FILE__) + '/mrss_restriction' require File.dirname(__FILE__) + '/mrss_text' require File.dirname(__FILE__) + '/mrss_thumbnail' module Feedzirra module Parser class MRSSContent include SAXMachine element :'media:content', :as => :url, :value => :url element :'media:content', :as => :content_type, :value => :type element :'media:content', :as => :medium, :value => :medium element :'media:content', :as => :duration, :value => :duration element :'media:content', :as => :isDefault, :value => :isDefault element :'media:content', :as => :expression, :value => :expression element :'media:content', :as => :bitrate, :value => :bitrate element :'media:content', :as => :framerate, :value => :framerate element :'media:content', :as => :samplingrate, :value => :sampling element :'media:content', :as => :channels, :value => :duration element :'media:content', :as => :height, :value => :height element :'media:content', :as => :width, :value => :width element :'media:content', :as => :lang, :value => :lang element :'media:content', :as => :fileSize, :value => :fileSize # optional elements element :'media:title', :as => :media_title element :'media:keywords', :as => :media_keywords element :'media:description', :as => :media_description element :'media:thumbnail', :as => :media_thumbnail, :class => MRSSThumbnail element :'media:rating', :as => :rating, :class => MRSSRating element :'media:category', :as => :media_category, :class => MRSSCategory element :'media:hash', :as => :media_hash, :class => MRSSHash element :'media:player', :as => :media_player, :class => MRSSPlayer elements :'media:credit', :as => :credits, :class => MRSSCredit element :'media:copyright', :as => :copyright, :class => MRSSCopyright element :'media:restriction', :as => :media_restriction, :class => MRSSRestriction element :'media:text', :as => :text, :class => MRSSText end end end