mirror of
https://github.com/movie-web/providers.git
synced 2025-09-13 08:13:24 +00:00
Compare commits
7 Commits
8281c3141a
...
2553909e8d
Author | SHA1 | Date | |
---|---|---|---|
|
2553909e8d | ||
|
6a0ac52908 | ||
|
0ede244c2b | ||
|
047b69c309 | ||
|
61952b0e87 | ||
|
125021e432 | ||
|
9e06035e27 |
@@ -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: [],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
@@ -1,30 +1,30 @@
|
|||||||
export interface Episode {
|
export interface Subtitle {
|
||||||
episode: string;
|
url: string;
|
||||||
id: number;
|
name: string;
|
||||||
videoKey: string;
|
|
||||||
hls: string;
|
|
||||||
audio: {
|
|
||||||
names: string[];
|
|
||||||
order: number[];
|
|
||||||
}
|
|
||||||
cc: Subtitle[];
|
|
||||||
duration: number;
|
|
||||||
title: string;
|
|
||||||
download: string;
|
|
||||||
sections: string[]
|
|
||||||
poster: string;
|
|
||||||
preview: {
|
|
||||||
src: string;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Subtitle {
|
export interface Episode {
|
||||||
url: string;
|
episode: string;
|
||||||
name: string;
|
id: number;
|
||||||
|
videoKey: string;
|
||||||
|
hls: string;
|
||||||
|
audio: {
|
||||||
|
names: string[];
|
||||||
|
order: number[];
|
||||||
|
};
|
||||||
|
cc: Subtitle[];
|
||||||
|
duration: number;
|
||||||
|
title: string;
|
||||||
|
download: string;
|
||||||
|
sections: string[];
|
||||||
|
poster: string;
|
||||||
|
preview: {
|
||||||
|
src: string;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Season {
|
export interface Season {
|
||||||
season: number,
|
season: number;
|
||||||
blocked: boolean,
|
blocked: boolean;
|
||||||
episodes: Episode[]
|
episodes: Episode[];
|
||||||
}
|
}
|
||||||
|
@@ -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';
|
||||||
|
@@ -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,
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user