summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorOmar Roth <omarroth@hotmail.com>2018-07-12 09:36:25 -0500
committerOmar Roth <omarroth@hotmail.com>2018-07-12 09:36:25 -0500
commitf7fad7fe858418f168061564cce139440d758fa3 (patch)
tree7062d455bb3842f059d55aa337ca03730eb88091 /src
parent6660b2b56badc7ee74b4e1fac3a07fd65d0b426f (diff)
downloadinvidious-f7fad7fe858418f168061564cce139440d758fa3.tar.gz
invidious-f7fad7fe858418f168061564cce139440d758fa3.tar.bz2
invidious-f7fad7fe858418f168061564cce139440d758fa3.zip
Update signature
Diffstat (limited to 'src')
-rw-r--r--src/invidious/helpers.cr8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/invidious/helpers.cr b/src/invidious/helpers.cr
index c62af35f..d8aae2c9 100644
--- a/src/invidious/helpers.cr
+++ b/src/invidious/helpers.cr
@@ -301,12 +301,10 @@ def decrypt_signature(a)
a = a.split("")
a.reverse!
- a = splice(a, 20)
+ a.delete_at(0..2)
+ a = splice(a, 23)
+ a = splice(a, 44)
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("")