summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOmar Roth <omarroth@hotmail.com>2018-07-13 08:50:32 -0500
committerOmar Roth <omarroth@hotmail.com>2018-07-13 08:50:32 -0500
commitc56a94553320b165276779c99553ee2c1bc19e31 (patch)
tree31fd34cb944e9e62911dce00ef758843bcac8b8b
parentf7fad7fe858418f168061564cce139440d758fa3 (diff)
downloadinvidious-c56a94553320b165276779c99553ee2c1bc19e31.tar.gz
invidious-c56a94553320b165276779c99553ee2c1bc19e31.tar.bz2
invidious-c56a94553320b165276779c99553ee2c1bc19e31.zip
Update signature
-rw-r--r--src/invidious/helpers.cr7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/invidious/helpers.cr b/src/invidious/helpers.cr
index d8aae2c9..c430762f 100644
--- a/src/invidious/helpers.cr
+++ b/src/invidious/helpers.cr
@@ -300,12 +300,11 @@ end
def decrypt_signature(a)
a = a.split("")
+ a = splice(a, 24)
a.reverse!
- a.delete_at(0..2)
- a = splice(a, 23)
- a = splice(a, 44)
+ a = splice(a, 51)
a.reverse!
- a.delete_at(0..2)
+ a = splice(a, 60)
return a.join("")
end