Skip to content

Invidious is an alternative front-end to YouTube

Update signature

Omar Roth8e24f4e9e3d1
diff --git a/src/helpers.cr b/src/helpers.cr
index d825e6e6..51f4377a 100644
--- a/src/helpers.cr
+++ b/src/helpers.cr
@@ -298,11 +298,14 @@ end
def decrypt_signature(a)
a = a.split("")
- a = splice(a, 3)
- a = splice(a, 28)
- a.delete_at(0..0)
a.reverse!
- a = splice(a, 22)
+ a = splice(a, 20)
+ a.reverse!
+ a = splice(a, 10)
+ a.delete_at(0..0)
+ a = splice(a, 37)
+ a = splice(a, 32)
+ a.delete_at(0..2)
return a.join("")
end