Skip to content

Commit

Permalink
fix(vidcloud): extract url source (consumet#478)
Browse files Browse the repository at this point in the history
bugfix: extract url source at flixhq Closes consumet#569

Co-authored-by: Adailton Nascimento <[email protected]>
  • Loading branch information
dhelbegor and Adailton Nascimento authored Feb 27, 2024
1 parent 20ed6dc commit f1d8361
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/extractors/vidcloud.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,8 @@ class VidCloud extends VideoExtractor {

if (!isJson(res.data.sources)) {
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));
const keyString = btoa(String.fromCharCode.apply(null, Array.from(new Uint8Array(JSON.parse(JSON.stringify(keys))))));
const decryptedVal = CryptoJS.AES.decrypt(res.data.sources, keyString).toString(CryptoJS.enc.Utf8);
sources = isJson(decryptedVal) ? JSON.parse(decryptedVal) : res.data.sources;
}

Expand Down

0 comments on commit f1d8361

Please sign in to comment.