This commit is contained in:
teddyHV11 2024-04-11 17:49:33 +03:00
commit 2553909e8d
3 changed files with 8 additions and 5 deletions

View File

@ -1,5 +1,5 @@
import { flags } from '@/entrypoint/utils/targets';
import { makeEmbed } from '@/providers/base';
import { vidsrcRCPBase } from '@/providers/sources/vidsrc/common';
const hlsURLRegex = /file:"(.*?)"/;
const setPassRegex = /var pass_path = "(.*set_pass\.php.*)";/;
@ -56,7 +56,11 @@ export const vidsrcembedScraper = makeEmbed({
id: 'primary',
type: 'hls',
playlist: finalUrl,
flags: [flags.CORS_ALLOWED],
headers: {
Referer: vidsrcRCPBase,
Origin: vidsrcRCPBase,
},
flags: [],
captions: [],
},
],

View File

@ -1,2 +1,2 @@
export const vidsrcBase = 'https://vidsrc.me';
export const vidsrcRCPBase = 'https://rcp.vidsrc.me';
export const vidsrcRCPBase = 'https://vidsrc.stream';

View File

@ -1,4 +1,3 @@
import { flags } from '@/entrypoint/utils/targets';
import { makeSourcerer } from '@/providers/base';
import { scrapeMovie } from '@/providers/sources/vidsrc/scrape-movie';
import { scrapeShow } from '@/providers/sources/vidsrc/scrape-show';
@ -7,7 +6,7 @@ export const vidsrcScraper = makeSourcerer({
id: 'vidsrc',
name: 'VidSrc',
rank: 90,
flags: [flags.CORS_ALLOWED],
flags: [],
scrapeMovie,
scrapeShow,
});