module Getvideo

coding:utf-8

coding:utf-8

coding:utf-8

coding:utf-8

coding:utf-8

coding:utf-8

coding:utf-8

Constants

VERSION

Public Class Methods

parse(url) click to toggle source
# File lib/getvideo.rb, line 20
def self.parse(url)
  if url =~ /youku/
    Youku.new(url)
  elsif url =~ /tudou/
    Tudou.new(url)
  elsif url =~ /iqiyi/
    Iqiyi.new(url)
  elsif url =~ /sohu/
    Sohu.new(url)
  elsif url =~ /56\.com/
    Wole.new(url) 
  elsif url =~ /ku6/
    Ku6.new(url)
  elsif url =~ /youtube/
    Youtube.new(url)
  elsif url =~ /(iask|sina)/
    Sina.new(url)
  else
    return false
  end
end