Update signature param

このコミットが含まれているのは:
Omar Roth 2020-05-08 08:59:09 -05:00
コミット 75450dcdbc
この署名に対応する既知のキーがデータベースに存在しません
GPGキーID: B8254FB7EC3D37F2
1個のファイルの変更4行の追加4行の削除

ファイルの表示

@ -562,8 +562,8 @@ struct Video
if fmt_stream["url"]?
fmt["url"] = fmt_stream["url"].as_s
end
if fmt_stream["cipher"]?
HTTP::Params.parse(fmt_stream["cipher"].as_s).each do |key, value|
if cipher = fmt_stream["cipher"]? || fmt_stream["signatureCipher"]?
HTTP::Params.parse(cipher.as_s).each do |key, value|
fmt[key] = value
end
end
@ -638,8 +638,8 @@ struct Video
if adaptive_fmt["url"]?
fmt["url"] = adaptive_fmt["url"].as_s
end
if adaptive_fmt["cipher"]?
HTTP::Params.parse(adaptive_fmt["cipher"].as_s).each do |key, value|
if cipher = adaptive_fmt["cipher"]? || adaptive_fmt["signatureCipher"]?
HTTP::Params.parse(cipher.as_s).each do |key, value|
fmt[key] = value
end
end