Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mattetti/dm-gvideo-adapter
DataMapper adapter for google video
https://github.com/mattetti/dm-gvideo-adapter
Last synced: 4 months ago
JSON representation
DataMapper adapter for google video
- Host: GitHub
- URL: https://github.com/mattetti/dm-gvideo-adapter
- Owner: mattetti
- License: mit
- Created: 2008-09-28T20:02:20.000Z (over 16 years ago)
- Default Branch: master
- Last Pushed: 2008-09-29T17:42:35.000Z (over 16 years ago)
- Last Synced: 2024-04-14T10:12:51.110Z (10 months ago)
- Language: Ruby
- Homepage:
- Size: 85.9 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: LICENSE
Awesome Lists containing this project
README
dm-gvideo-adapter
=================# dependencies
Gvideo: http://github.com/mattetti/gvideoinstall 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)