mirror of
https://gitea.invidious.io/iv-org/invidious.git
synced 2024-08-15 00:53:41 +00:00
Update signature param
This commit is contained in:
parent
bd2c7e3bb9
commit
75450dcdbc
1 changed files with 4 additions and 4 deletions
|
@ -562,8 +562,8 @@ struct Video
|
||||||
if fmt_stream["url"]?
|
if fmt_stream["url"]?
|
||||||
fmt["url"] = fmt_stream["url"].as_s
|
fmt["url"] = fmt_stream["url"].as_s
|
||||||
end
|
end
|
||||||
if fmt_stream["cipher"]?
|
if cipher = fmt_stream["cipher"]? || fmt_stream["signatureCipher"]?
|
||||||
HTTP::Params.parse(fmt_stream["cipher"].as_s).each do |key, value|
|
HTTP::Params.parse(cipher.as_s).each do |key, value|
|
||||||
fmt[key] = value
|
fmt[key] = value
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -638,8 +638,8 @@ struct Video
|
||||||
if adaptive_fmt["url"]?
|
if adaptive_fmt["url"]?
|
||||||
fmt["url"] = adaptive_fmt["url"].as_s
|
fmt["url"] = adaptive_fmt["url"].as_s
|
||||||
end
|
end
|
||||||
if adaptive_fmt["cipher"]?
|
if cipher = adaptive_fmt["cipher"]? || adaptive_fmt["signatureCipher"]?
|
||||||
HTTP::Params.parse(adaptive_fmt["cipher"].as_s).each do |key, value|
|
HTTP::Params.parse(cipher.as_s).each do |key, value|
|
||||||
fmt[key] = value
|
fmt[key] = value
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue