From 7c363b155d0124f197fdefde76784cbed66f0a07 Mon Sep 17 00:00:00 2001 From: AnimeDL Date: Sat, 30 Mar 2024 15:30:46 -0700 Subject: [PATCH] [CR] Only use second key If first key is used, occasionally the episode will fail to decrypt? --- crunchy.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/crunchy.ts b/crunchy.ts index 81a86b2..6a45d25 100644 --- a/crunchy.ts +++ b/crunchy.ts @@ -1710,9 +1710,11 @@ export default class Crunchy implements ServiceClass { return undefined; } const keys = {} as Record; - encryptionKeys.forEach(function(key) { + /*encryptionKeys.forEach(function(key) { keys[key.kid] = key.key; - }); + });*/ + //Only use second key, if first key is used too, occasionally it can fail? + keys[encryptionKeys[1].kid] = encryptionKeys[1].key; if (videoDownloaded) { console.info('Started decrypting video');