Class: VideoParser::TuDou

Inherits:
VideoSite show all
Defined in:
lib/video_parser/tudou.rb

Overview

support path begin with “/playlist” or “/programs” format

Constant Summary collapse

VideoHost =
"www.tudou.com"

Instance Attribute Summary collapse

Attributes inherited from VideoSite

#doc, #uri

Class Method Summary collapse

Methods inherited from VideoSite

#get, #initialize

Methods included from GateWay

#get_doc

Constructor Details

This class inherits a constructor from VideoParser::VideoSite

Instance Attribute Details

#is_playlistObject (readonly)

Returns the value of attribute is_playlist.



8
9
10
# File 'lib/video_parser/tudou.rb', line 8

def is_playlist
  @is_playlist
end

#is_programsObject (readonly)

Returns the value of attribute is_programs.



8
9
10
# File 'lib/video_parser/tudou.rb', line 8

def is_programs
  @is_programs
end

Class Method Details

.embed_html(video_src) ⇒ Object



10
11
12
13
14
# File 'lib/video_parser/tudou.rb', line 10

def self.embed_html(video_src)
  <<-EMBED
    <embed src = '#{video_src}' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' wmode='opaque' width='480' height='400'></embed>
  EMBED
end