1 Commits

Author SHA1 Message Date
infvortx
0654625219 Merge 8281c3141a into 09eadfd306 2024-04-11 03:31:59 +00:00
3 changed files with 5 additions and 8 deletions

View File

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

View File

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

View File

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