Add fix for streams

このコミットが含まれているのは:
Omar Roth 2018-03-14 18:05:19 -05:00
コミット c8a798e13c
1個のファイルの変更2行の追加0行の削除

ファイルの表示

@ -186,8 +186,10 @@ get "/watch" do |env|
fmt_stream = [] of HTTP::Params
video.info["url_encoded_fmt_stream_map"].split(",") do |string|
if !string.empty?
fmt_stream << HTTP::Params.parse(string)
end
end
adaptive_fmts = [] of HTTP::Params
if video.info.has_key?("adaptive_fmts")