Sha256: 58a755fa8afcda61d498198cef31c0c6d65b18b5b471864615c4e5b0998715ef

Contents?: true

Size: 667 Bytes

Versions: 4

Compression:

Stored size: 667 Bytes

Contents

AutoHtml.add_filter(:worldstar).with(:width => 448, :height => 374) do |text,options|
    text.gsub(/http:\/\/www\.worldstarhiphop\.com\/videos\/video\.php\?v\=(wshh[A-Za-z0-9]+)/) do 
      video_id = $1
      width  = options[:width]
      height = options[:height]
      %{<object width="#{width}" height="#{height}"><param name="movie" value="http://www.worldstarhiphop.com/videos/e/16711680/#{video_id}"><param name="allowFullScreen" value="true"></param><embed src="http://www.worldstarhiphop.com/videos/e/16711680/#{video_id}" type="application/x-shockwave-flash" allowFullscreen="true" width="#{width}" height="#{height}"></embed></object>}
    end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
auto_html-1.6.4 lib/auto_html/filters/worldstar.rb
auto_html-1.6.3 lib/auto_html/filters/worldstar.rb
auto_html-1.6.2 lib/auto_html/filters/worldstar.rb
auto_html-1.6.1 lib/auto_html/filters/worldstar.rb