Skip to content

Commit 3701015

Browse files
committed
fix: peachify
1 parent f5a04b3 commit 3701015

3 files changed

Lines changed: 5 additions & 7 deletions

File tree

src/providers/peachify/decrypt.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const { subtle } = webcrypto;
88
* This key is embedded in their frontend bundle.
99
*/
1010
const ENCRYPTION_KEY_HEX =
11-
'd8f2a1b5e9c470814f6b2c3a5d8e7f9c1a2b3c4d5e3f7a8b9c0d1e2f3a4d5c6d';
11+
'a8f2a1b5e9c470814f6b2c3a5d8e7f9c1a2b3c4d5e3f7a8b8cad1e2f0a4d5c5a';
1212

1313
/**
1414
* Peachify payload format:
@@ -119,11 +119,6 @@ export default async function decryptPayload(
119119

120120
return JSON.parse(decryptedJson) as PeachifyApiResponse;
121121
} catch (error) {
122-
console.error(
123-
'Failed to decrypt Peachify payload. Payload may be invalid or tampered with.',
124-
error
125-
);
126-
127122
return null;
128123
}
129124
}

src/providers/peachify/peachify.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,9 @@ export class PeachifyProvider extends BaseProvider {
125125

126126
if (body.isEncrypted && body.data) {
127127
const decrypted = await decrypt(body.data);
128-
if (!decrypted) return null;
128+
if (!decrypted) {
129+
return null;
130+
}
129131
body = decrypted;
130132
}
131133
const rawSources = Array.isArray(body.sources) ? body.sources : [];

src/streamPatterns.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ export const streamPatterns: RegExp[] = [
1212
/(epimetheus63|earth14|pandora20)\.workers\.dev/, // streammafia's workers.dev proxy domains
1313
/tiktokcdn\.com/,
1414
/\/content\/(.)*\/page\-(.)*\.html/,
15+
/trendimovies\.com\/tgstream\/stream/
1516
];

0 commit comments

Comments
 (0)