From f7fad7fe858418f168061564cce139440d758fa3 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Thu, 12 Jul 2018 09:36:25 -0500 Subject: [PATCH] Update signature --- shard.yml | 2 +- src/invidious/helpers.cr | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/shard.yml b/shard.yml index c8ec5807..6c125d7d 100644 --- a/shard.yml +++ b/shard.yml @@ -19,6 +19,6 @@ dependencies: github: detectlanguage/detectlanguage-crystal branch: master -crystal: 0.25.0 +crystal: 0.25.1 license: AGPLv3 diff --git a/src/invidious/helpers.cr b/src/invidious/helpers.cr index c62af35f..d8aae2c9 100644 --- a/src/invidious/helpers.cr +++ b/src/invidious/helpers.cr @@ -301,12 +301,10 @@ def decrypt_signature(a) a = a.split("") a.reverse! - a = splice(a, 20) + a.delete_at(0..2) + a = splice(a, 23) + a = splice(a, 44) a.reverse! - a = splice(a, 10) - a.delete_at(0..0) - a = splice(a, 37) - a = splice(a, 32) a.delete_at(0..2) return a.join("")