From 22800efbc43d6f869cd09896df1380969aaa6919 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Sun, 8 Apr 2018 12:31:20 -0500 Subject: [PATCH] Clean up decrypt_signature for watch page --- src/invidious.cr | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/invidious.cr b/src/invidious.cr index c6145425..bab57808 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -253,12 +253,7 @@ get "/watch" do |env| end end - signature = false if adaptive_fmts[0]? && adaptive_fmts[0]["s"]? - signature = true - end - - if signature adaptive_fmts.each do |fmt| fmt["url"] += "&signature=" + decrypt_signature(fmt["s"]) end