Module: Revver4R

Defined in:
lib/revver4r.rb

Overview

About

This is module for searching Revver and returning video information from it.

Usage Example

Here’s how to pull 1 quicktime video with the tag ruby

  require 'Revver4R'
  video_search = Revver4R::VideoSearch.new("qt","tag","ruby",{"limit" => 1})
  videos = video_search.search
  videos.each do |video|
    puts video.to_yaml
  end

For more information at http://developer.revver.com/feeds/mrss

Defined Under Namespace

Classes: SearchBase, Thumbnail, Video, VideoContent, VideoSearch

Constant Summary collapse

POSSIBLE_MEDIA_TYPES =
["flash", "qt"]
POSSIBLE_CONTENTS =
["user","collection","search","tag","latest","full","top10","top20","offline"]
POSSIBLE_OPTIONS =
["affiliate","orderBy","order","offset","limit","minAgeRestriction","maxAgeRestriction"]
POSSIBLE_ORDER_BYS =
["publicationDate","modifiedDate","createdDate","title","author","views","duration","size"]
POSSIBLE_ORDERS =
["asc","desc"]
RESTRICTION_RANGE =
(1..5)
REVVER_RSS_START =
"http://feeds.revver.com/2.0/mrss/"