summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorOmar Roth <omarroth@hotmail.com>2018-05-07 19:56:01 -0500
committerOmar Roth <omarroth@hotmail.com>2018-05-07 19:56:01 -0500
commitfef2cbc0b22c1a5ef4c0563fbbf57b31bcf5e313 (patch)
tree923702a66861c6ba266aa513045d3ed4a40cf16f /src
parentdce9ef3e8b244ded761d8c2e742202b0955d3b7b (diff)
downloadinvidious-fef2cbc0b22c1a5ef4c0563fbbf57b31bcf5e313.tar.gz
invidious-fef2cbc0b22c1a5ef4c0563fbbf57b31bcf5e313.tar.bz2
invidious-fef2cbc0b22c1a5ef4c0563fbbf57b31bcf5e313.zip
Update signature
Diffstat (limited to 'src')
-rw-r--r--src/helpers.cr7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/helpers.cr b/src/helpers.cr
index 7f3b55f1..2a962724 100644
--- a/src/helpers.cr
+++ b/src/helpers.cr
@@ -295,12 +295,13 @@ end
def decrypt_signature(a)
a = a.split("")
- a.delete_at(0..1)
a.reverse!
- a.delete_at(0..1)
+ a = splice(a, 51)
a.reverse!
+ a = splice(a, 24)
a.delete_at(0..2)
- a = splice(a, 60)
+ a = splice(a, 70)
+ a.reverse!
return a.join("")
end