Invidious is an alternative front-end to YouTube
Update signature param
Omar Roth75450dcdbcaf
diff --git a/src/invidious/videos.cr b/src/invidious/videos.crindex f9d3dc28..7e815ca1 100644--- a/src/invidious/videos.cr+++ b/src/invidious/videos.cr@@ -562,8 +562,8 @@ struct Videoif fmt_stream["url"]?fmt["url"] = fmt_stream["url"].as_send- 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] = valueendend@@ -638,8 +638,8 @@ struct Videoif adaptive_fmt["url"]?fmt["url"] = adaptive_fmt["url"].as_send- 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] = valueendend