that should be proxied obviously

This commit is contained in:
Jorrin
2024-02-03 02:29:09 +01:00
parent fe90bdaa9a
commit 16dcca270c

View File

@@ -9,7 +9,7 @@ export const referer = `${vidplayBase}/`;
// Full credits to @Ciarands! // Full credits to @Ciarands!
export const getDecryptionKeys = async (ctx: EmbedScrapeContext): Promise<string[]> => { export const getDecryptionKeys = async (ctx: EmbedScrapeContext): Promise<string[]> => {
const res = await ctx.fetcher<string>('https://github.com/Ciarands/vidsrc-keys/blob/main/keys.json'); const res = await ctx.proxiedFetcher<string>('https://github.com/Ciarands/vidsrc-keys/blob/main/keys.json');
const regex = /"rawLines":\s*\[([\s\S]*?)\]/; const regex = /"rawLines":\s*\[([\s\S]*?)\]/;
const rawLines = res.match(regex)?.[1]; const rawLines = res.match(regex)?.[1];
if (!rawLines) throw new Error('No keys found'); if (!rawLines) throw new Error('No keys found');