Skip to content

Invidious is an alternative front-end to YouTube

Update signature

Omar Roth7234785145bf
diff --git a/src/helpers.cr b/src/helpers.cr
index c195cc28..728bfbc1 100644
--- a/src/helpers.cr
+++ b/src/helpers.cr
@@ -298,13 +298,12 @@ end
def decrypt_signature(a)
a = a.split("")
- a = splice(a, 21)
+ a = splice(a, 62)
+ a.delete_at(0..0)
+ a.reverse!
a.delete_at(0..2)
- a = splice(a, 41)
+ a = splice(a, 16)
a.reverse!
- a.delete_at(0..0)
- a = splice(a, 21)
- a.delete_at(0..0)
return a.join("")
end