replace vidplay decryption keys and domain

- Massive thanks to @Ciarands!
This commit is contained in:
Jorrin 2024-01-24 17:32:34 +01:00
parent 65fb0eb862
commit 5adca068a8
2 changed files with 5 additions and 7 deletions

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{
"name": "@movie-web/providers",
"version": "2.0.5",
"version": "2.1.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@movie-web/providers",
"version": "2.0.5",
"version": "2.1.0",
"license": "MIT",
"dependencies": {
"cheerio": "^1.0.0-rc.12",

View File

@ -2,16 +2,14 @@ import { makeFullUrl } from '@/fetchers/common';
import { decodeData } from '@/providers/sources/vidsrcto/common';
import { EmbedScrapeContext } from '@/utils/context';
export const vidplayBase = 'https://vidplay.site';
export const referer = 'https://vidplay.online/';
export const vidplayBase = 'https://vidplay.online';
export const referer = `${vidplayBase}/`;
// This file is based on https://github.com/Ciarands/vidsrc-to-resolver/blob/dffa45e726a4b944cb9af0c9e7630476c93c0213/vidsrc.py#L16
// Full credits to @Ciarands!
export const getDecryptionKeys = async (ctx: EmbedScrapeContext): Promise<string[]> => {
const res = await ctx.fetcher<string>(
'https://raw.githubusercontent.com/Claudemirovsky/worstsource-keys/keys/keys.json',
);
const res = await ctx.fetcher<string>('https://raw.githubusercontent.com/Ciarands/vidsrc-keys/main/keys.json');
return JSON.parse(res);
};