7 Commits

Author SHA1 Message Date
teddyHV11
2553909e8d Merge branch 'dev' of https://github.com/infvortx/providers-dev into dev 2024-04-11 17:49:33 +03:00
teddyHV11
6a0ac52908 Fix prettier errors 2024-04-11 17:49:32 +03:00
Jorrin
0ede244c2b Merge branch 'dev' into dev 2024-04-11 15:48:11 +02:00
Jorrin
047b69c309 Merge pull request #150 from Ciarands/dev
Fix vidsrc.me
2024-04-11 13:18:57 +02:00
Ciarands
61952b0e87 Remove CORS_ALLOWED flag and add headers 2024-04-11 12:08:31 +01:00
Ciarands
125021e432 remove CORS_ALLOWED flag 2024-04-11 12:08:03 +01:00
Ciarands
9e06035e27 Update RCP base url 2024-04-11 12:03:04 +01:00
4 changed files with 33 additions and 30 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,7 +56,11 @@ export const vidsrcembedScraper = makeEmbed({
id: 'primary', id: 'primary',
type: 'hls', type: 'hls',
playlist: finalUrl, playlist: finalUrl,
flags: [flags.CORS_ALLOWED], headers: {
Referer: vidsrcRCPBase,
Origin: vidsrcRCPBase,
},
flags: [],
captions: [], captions: [],
}, },
], ],

View File

@@ -1,3 +1,8 @@
export interface Subtitle {
url: string;
name: string;
}
export interface Episode { export interface Episode {
episode: string; episode: string;
id: number; id: number;
@@ -6,25 +11,20 @@ export interface Episode {
audio: { audio: {
names: string[]; names: string[];
order: number[]; order: number[];
} };
cc: Subtitle[]; cc: Subtitle[];
duration: number; duration: number;
title: string; title: string;
download: string; download: string;
sections: string[] sections: string[];
poster: string; poster: string;
preview: { preview: {
src: string; src: string;
} };
}
export interface Subtitle {
url: string;
name: string;
} }
export interface Season { export interface Season {
season: number, season: number;
blocked: boolean, blocked: boolean;
episodes: Episode[] episodes: Episode[];
} }

View File

@@ -1,2 +1,2 @@
export const vidsrcBase = 'https://vidsrc.me'; 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 { 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';
@@ -7,7 +6,7 @@ export const vidsrcScraper = makeSourcerer({
id: 'vidsrc', id: 'vidsrc',
name: 'VidSrc', name: 'VidSrc',
rank: 90, rank: 90,
flags: [flags.CORS_ALLOWED], flags: [],
scrapeMovie, scrapeMovie,
scrapeShow, scrapeShow,
}); });