|
|
@ -151,9 +151,11 @@ get "/watch" do |env|
|
|
|
|
fmt_stream << HTTP::Params.parse(string)
|
|
|
|
fmt_stream << HTTP::Params.parse(string)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
if fmt_stream[0]["s"]?
|
|
|
|
if fmt_stream[0]?
|
|
|
|
fmt_stream.each do |fmt|
|
|
|
|
if fmt_stream[0]["s"]?
|
|
|
|
fmt["url"] = "#{fmt["url"]}&signature=#{decrypt_signature(fmt["s"])}"
|
|
|
|
fmt_stream.each do |fmt|
|
|
|
|
|
|
|
|
fmt["url"] = "#{fmt["url"]}&signature=#{decrypt_signature(fmt["s"])}"
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
@ -167,9 +169,11 @@ get "/watch" do |env|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
if adaptive_fmts[0]["s"]?
|
|
|
|
if adaptive_fmts[0]?
|
|
|
|
adaptive_fmts.each do |fmt|
|
|
|
|
if adaptive_fmts[0]["s"]?
|
|
|
|
fmt["url"] = "#{fmt["url"]}&signature=#{decrypt_signature(fmt["s"])}"
|
|
|
|
adaptive_fmts.each do |fmt|
|
|
|
|
|
|
|
|
fmt["url"] = "#{fmt["url"]}&signature=#{decrypt_signature(fmt["s"])}"
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|