mirror of
https://github.com/p-stream/providers.git
synced 2026-03-11 17:55:36 +00:00
update vidsrcvip
This commit is contained in:
parent
15e8c02340
commit
da7f625752
4 changed files with 33 additions and 11 deletions
|
|
@ -1,30 +1,50 @@
|
|||
import { flags } from '@/entrypoint/utils/targets';
|
||||
import { makeEmbed } from '@/providers/base';
|
||||
import { createM3U8ProxyUrl } from '@/utils/proxy';
|
||||
|
||||
const embedProviders = [
|
||||
{
|
||||
id: 'vidsrc-nova',
|
||||
name: 'Nova',
|
||||
rank: 558,
|
||||
},
|
||||
const embeds = [
|
||||
{
|
||||
id: 'vidsrc-comet',
|
||||
name: 'Comet',
|
||||
rank: 560,
|
||||
rank: 39,
|
||||
},
|
||||
{
|
||||
id: 'vidsrc-pulsar',
|
||||
name: 'Pulsar',
|
||||
rank: 559,
|
||||
rank: 38,
|
||||
},
|
||||
{
|
||||
id: 'vidsrc-nova',
|
||||
name: 'Nova',
|
||||
rank: 37,
|
||||
},
|
||||
];
|
||||
|
||||
const headers = {
|
||||
referer: 'https://vidsrc.vip/',
|
||||
origin: 'https://vidsrc.vip',
|
||||
};
|
||||
|
||||
function makeVidSrcEmbed(provider: { id: string; name: string; rank: number }) {
|
||||
return makeEmbed({
|
||||
id: provider.id,
|
||||
name: provider.name,
|
||||
rank: provider.rank,
|
||||
async scrape(ctx) {
|
||||
if (ctx.url.includes('https://cdn.niggaflix.xyz')) {
|
||||
return {
|
||||
stream: [
|
||||
{
|
||||
id: 'primary',
|
||||
type: 'hls',
|
||||
playlist: createM3U8ProxyUrl(ctx.url, headers),
|
||||
flags: [flags.CORS_ALLOWED],
|
||||
captions: [],
|
||||
},
|
||||
],
|
||||
};
|
||||
}
|
||||
|
||||
return {
|
||||
stream: [
|
||||
{
|
||||
|
|
@ -40,4 +60,4 @@ function makeVidSrcEmbed(provider: { id: string; name: string; rank: number }) {
|
|||
});
|
||||
}
|
||||
|
||||
export const [vidsrcNovaEmbed, vidsrcCometEmbed, vidsrcPulsarEmbed] = embedProviders.map(makeVidSrcEmbed);
|
||||
export const [vidsrcCometEmbed, vidsrcPulsarEmbed, vidsrcNovaEmbed] = embeds.map(makeVidSrcEmbed);
|
||||
|
|
|
|||
|
|
@ -77,7 +77,7 @@ async function comboScraper(ctx: ShowScrapeContext | MovieScrapeContext): Promis
|
|||
export const cinemaosScraper = makeSourcerer({
|
||||
id: 'cinemaos',
|
||||
name: 'CinemaOS',
|
||||
rank: 150,
|
||||
rank: 149,
|
||||
disabled: true,
|
||||
flags: [flags.CORS_ALLOWED],
|
||||
scrapeMovie: comboScraper,
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ async function comboScraper(ctx: ShowScrapeContext | MovieScrapeContext): Promis
|
|||
export const vidsrcvipScraper = makeSourcerer({
|
||||
id: 'vidsrcvip',
|
||||
name: 'VidSrc.vip',
|
||||
rank: 560,
|
||||
rank: 150,
|
||||
flags: [flags.CORS_ALLOWED],
|
||||
scrapeMovie: comboScraper,
|
||||
scrapeShow: comboScraper,
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ import {
|
|||
streamwishSpanishScraper,
|
||||
} from '@/providers/embeds/streamwish';
|
||||
import { turbovidScraper } from '@/providers/embeds/turbovid';
|
||||
import { vidsrcNovaEmbed } from '@/providers/embeds/vidsrcvip';
|
||||
import { viperScraper } from '@/providers/embeds/viper';
|
||||
import { warezcdnembedMp4Scraper } from '@/providers/embeds/warezcdn/mp4';
|
||||
import { embedsuScraper } from '@/providers/sources/embedsu';
|
||||
|
|
@ -38,6 +39,7 @@ const SKIP_VALIDATION_CHECK_IDS = [
|
|||
turbovidScraper.id,
|
||||
nepuScraper.id,
|
||||
pirxcyScraper.id,
|
||||
vidsrcNovaEmbed.id,
|
||||
];
|
||||
|
||||
export function isValidStream(stream: Stream | undefined): boolean {
|
||||
|
|
|
|||
Loading…
Reference in a new issue