Skip to content

Commit

Permalink
[CodeFactor] Apply fixes to commit 167dc41
Browse files Browse the repository at this point in the history
  • Loading branch information
code-factor committed Feb 17, 2024
1 parent 167dc41 commit 0d102df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/extractors/vidcloud.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class VidCloud extends VideoExtractor {
);

if (!isJson(res.data.sources)) {
let keys = await (await this.client.get('https://raw.githubusercontent.com/eatmynerds/key/e4/key.txt')).data;
const keys = await (await this.client.get('https://raw.githubusercontent.com/eatmynerds/key/e4/key.txt')).data;
const keyString = btoa(String.fromCharCode.apply(null, Array.from(new Uint8Array(JSON.parse(keys)))));
const decryptedVal = CryptoJS.AES.decrypt(res.data.sources, keyString).toString(CryptoJS.enc.Utf8);
sources = JSON.parse(CryptoJS.AES.decrypt(res.data.sources, keyString).toString(CryptoJS.enc.Utf8));
Expand Down

0 comments on commit 0d102df

Please sign in to comment.