Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

DataMapper adapter for google video

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 script
Octocat-spinner-32 spec
Octocat-spinner-32 .gitignore
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README
Octocat-spinner-32 Rakefile
Octocat-spinner-32 TODO
Octocat-spinner-32 dm-gvideo-adapter.gemspec
README
dm-gvideo-adapter
=================

# dependencies
Gvideo: http://github.com/mattetti/gvideo

install the dependency:
  
  $ sudo gem install mattetti-gvideo
  
install this adapter

  $ sudo gem install mattetti-dm-gvideo-adapter
  

Usage:

# URI:
googlevideo://A005148908335059515423 # google video user id

(or you can set the user_id in your database.yml)


Video.all # returns all the user's videos
Video.get("-2838281997424715962")
Video.first(:title => "The Illuminati - Secret societies")
Video.all(:title.like => "%Illuminati%")
Video.all(:duration.gte => 360)
Video.all(:duration.gte => 60, :duration.lte => 360)
Something went wrong with that request. Please try again.