[CR] Only use second key

If first key is used, occasionally the episode will fail to decrypt?
This commit is contained in:
AnimeDL 2024-03-30 15:30:46 -07:00
parent 852558a245
commit 7c363b155d

View file

@ -1710,9 +1710,11 @@ export default class Crunchy implements ServiceClass {
return undefined;
}
const keys = {} as Record<string, string>;
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');