summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOmar Roth <omarroth@hotmail.com>2018-06-23 11:43:29 -0500
committerOmar Roth <omarroth@hotmail.com>2018-06-23 11:43:29 -0500
commita50ff5cffb5894a978ce5289eb3ab19eaf62c679 (patch)
tree9477545fdcbd6522710f1e040074a71492da09c1
parentbe5c925418c01628dc77e71a5fe460dea6445f5d (diff)
downloadinvidious-a50ff5cffb5894a978ce5289eb3ab19eaf62c679.tar.gz
invidious-a50ff5cffb5894a978ce5289eb3ab19eaf62c679.tar.bz2
invidious-a50ff5cffb5894a978ce5289eb3ab19eaf62c679.zip
Update signature
-rw-r--r--src/helpers.cr11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/helpers.cr b/src/helpers.cr
index cfa1392c..c1fb1364 100644
--- a/src/helpers.cr
+++ b/src/helpers.cr
@@ -299,12 +299,13 @@ def decrypt_signature(a)
a = a.split("")
a.reverse!
- a = splice(a, 7)
- a = splice(a, 5)
- a = splice(a, 6)
+ a = splice(a, 4)
+ a = splice(a, 19)
+ a.delete_at(0..1)
+ a.reverse!
+ a = splice(a, 65)
+ a = splice(a, 1)
a.reverse!
- a = splice(a, 63)
- a = splice(a, 13)
return a.join("")
end