summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorOmar Roth <omarroth@hotmail.com>2018-03-22 11:02:15 -0500
committerOmar Roth <omarroth@hotmail.com>2018-03-22 11:02:15 -0500
commit228008168a83e01bb3dfe602d6df24c5a31a26c2 (patch)
treedf4eb61db4bcf939a964133c2d9de2c34174bafd /src
parent48da2ced4656b026c19b35ed87fdaa5a2c6bb234 (diff)
downloadinvidious-228008168a83e01bb3dfe602d6df24c5a31a26c2.tar.gz
invidious-228008168a83e01bb3dfe602d6df24c5a31a26c2.tar.bz2
invidious-228008168a83e01bb3dfe602d6df24c5a31a26c2.zip
Update signature
Diffstat (limited to 'src')
-rw-r--r--src/helpers.cr9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/helpers.cr b/src/helpers.cr
index 4d6666ca..ef70c630 100644
--- a/src/helpers.cr
+++ b/src/helpers.cr
@@ -223,10 +223,15 @@ end
def decrypt_signature(a)
a = a.split("")
+ a = splice(a, 12)
+ a = splice(a, 18)
a.reverse!
- a.delete_at(0)
+ a.delete_at(0..2)
a.reverse!
- a = splice(a, 50)
+ a.delete_at(0..2)
+ a = splice(a, 69)
+ a.reverse!
+ a.delete_at(0..2)
return a.join("")
end