mirror of
https://github.com/movie-web/providers.git
synced 2025-09-13 12:43:25 +00:00
that should be proxied obviously
This commit is contained in:
@@ -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');
|
||||||
|
Reference in New Issue
Block a user