summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOmar Roth <omarroth@hotmail.com>2018-03-28 18:37:00 -0500
committerOmar Roth <omarroth@hotmail.com>2018-03-28 18:37:00 -0500
commit3a1a2403f572617408b6ce53f0bd78c90d0c1712 (patch)
treea273bf75c50d682f38bd6d52193777b3e3c2106b
parent8d97ecaeb14bf6eec9a381e00387577a95436eba (diff)
downloadinvidious-3a1a2403f572617408b6ce53f0bd78c90d0c1712.tar.gz
invidious-3a1a2403f572617408b6ce53f0bd78c90d0c1712.tar.bz2
invidious-3a1a2403f572617408b6ce53f0bd78c90d0c1712.zip
Update signature function
-rw-r--r--src/helpers.cr7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/helpers.cr b/src/helpers.cr
index 4116c7ee..c44405b1 100644
--- a/src/helpers.cr
+++ b/src/helpers.cr
@@ -244,11 +244,14 @@ def decrypt_signature(a)
a = a.split("")
a.reverse!
- a.delete_at(0..1)
- a = splice(a, 67)
a.delete_at(0..2)
a.reverse!
a.delete_at(0..2)
+ a = splice(a, 38)
+ a.delete_at(0..0)
+ a = splice(a, 64)
+ a.reverse!
+ a.delete_at(0..1)
return a.join("")
end