summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOmar Roth <omarroth@hotmail.com>2018-06-14 18:56:20 -0500
committerOmar Roth <omarroth@hotmail.com>2018-06-14 18:56:20 -0500
commit7234785145bf3d1cb60c7d8e8a4713e730295403 (patch)
tree4c8d45220dce307c17c6cc63ec634af03565d60f
parentd89ccc4d50156dbf63cb467ab9b782edf4a816f2 (diff)
downloadinvidious-7234785145bf3d1cb60c7d8e8a4713e730295403.tar.gz
invidious-7234785145bf3d1cb60c7d8e8a4713e730295403.tar.bz2
invidious-7234785145bf3d1cb60c7d8e8a4713e730295403.zip
Update signature
-rw-r--r--src/helpers.cr9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/helpers.cr b/src/helpers.cr
index c195cc28..728bfbc1 100644
--- a/src/helpers.cr
+++ b/src/helpers.cr
@@ -298,13 +298,12 @@ end
def decrypt_signature(a)
a = a.split("")
- a = splice(a, 21)
+ a = splice(a, 62)
+ a.delete_at(0..0)
+ a.reverse!
a.delete_at(0..2)
- a = splice(a, 41)
+ a = splice(a, 16)
a.reverse!
- a.delete_at(0..0)
- a = splice(a, 21)
- a.delete_at(0..0)
return a.join("")
end