Skip to content

Commit

Permalink
linting fix
Browse files Browse the repository at this point in the history
  • Loading branch information
stratumadev committed Dec 11, 2024
1 parent 3583d40 commit 1f12a75
Show file tree
Hide file tree
Showing 14 changed files with 1,653 additions and 1,668 deletions.
2 changes: 1 addition & 1 deletion ao.ts
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,7 @@ export default class AnimeOnegai implements ServiceClass {
//Handle Decryption if needed
if ((chosenVideoSegments.pssh_wvd || chosenAudioSegments.pssh_wvd) && (videoDownloaded || audioDownloaded)) {
console.info('Decryption Needed, attempting to decrypt');
var encryptionKeys;
let encryptionKeys;

if (cdm === 'widevine') {
encryptionKeys = await getKeysWVD(chosenVideoSegments.pssh_wvd, streamData.widevine_proxy, {});
Expand Down
6 changes: 3 additions & 3 deletions crunchy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1742,20 +1742,20 @@ export default class Crunchy implements ServiceClass {
}
const authData = await decReq.res.json() as {'custom_data': string, 'token': string};

var encryptionKeys;
let encryptionKeys;

if (cdm === 'widevine') {
encryptionKeys = await getKeysWVD(chosenVideoSegments.pssh_wvd, 'https://lic.drmtoday.com/license-proxy-widevine/cenc/', {
'dt-custom-data': authData.custom_data,
'x-dt-auth-token': authData.token
})
});
}

if (cdm === 'playready') {
encryptionKeys = await getKeysPRD(chosenVideoSegments.pssh_prd, 'https://lic.drmtoday.com/license-proxy-headerauth/drmtoday/RightsManager.asmx', {
'dt-custom-data': authData.custom_data,
'x-dt-auth-token': authData.token
})
});
}

if (!encryptionKeys || encryptionKeys.length == 0) {
Expand Down
1 change: 0 additions & 1 deletion hidive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,6 @@ export default class Hidive implements ServiceClass {
const chosenFontSize = options.originalFontSize ? undefined : options.fontSize;
let encryptionKeys: KeyContainer[] = [];
if (!canDecrypt) console.warn('Decryption not enabled!');
if (canDecrypt && cdm === 'playready') console.warn("Hidive doesn't support Playready CDM!");

if (!this.cfg.bin.ffmpeg)
this.cfg.bin = await yamlCfg.loadBinCfg();
Expand Down
Loading

0 comments on commit 1f12a75

Please sign in to comment.