Skip to content

Commit

Permalink
fixing ted talks (partner mode)
Browse files Browse the repository at this point in the history
  • Loading branch information
mamuso committed Jan 8, 2009
1 parent 6c8dcb9 commit cb1bba9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/acts_as_unvlogable/vg_ted.rb
Expand Up @@ -17,7 +17,7 @@ def initialize(url=nil, options={})
"&#{i[0]}=#{i[1].gsub('");', '')}"
}.join
emb = "#{url}?#{emb.gsub(" ", "")}"
@flashvars = "vu=http://video.ted.com/talks/embed/#{emb.query_param('hs').split("/")[-1].split("-stream-")[0]}-embed-PARTNER_high.flv&su=http://images.ted.com/images/ted/tedindex/embed-posters/#{emb.query_param('hs').split("/")[-1].split("-stream-")[0].gsub("_", "-")}.embed_thumbnail.jpg"
@flashvars = "vu=http://video.ted.com/talks/embed/#{emb.query_param('hs').split("/")[-1].split("-stream-")[0]}-embed#{"-PARTNER" unless emb.query_param('hs').index("PARTNER").nil?}_high.flv&su=http://images.ted.com/images/ted/tedindex/embed-posters/#{emb.query_param('hs').split("/")[-1].split("-stream-")[0].gsub("_", "-")}.embed_thumbnail.jpg"
@args = CGI::parse(@flashvars)
end

Expand Down

0 comments on commit cb1bba9

Please sign in to comment.