mirror of
https://github.com/p-stream/providers.git
synced 2026-01-11 20:10:33 +00:00
update vlod's sources
This commit is contained in:
parent
063b992b09
commit
bf073be73e
4 changed files with 20 additions and 13 deletions
|
|
@ -1,5 +1,6 @@
|
|||
import Fuse from 'fuse.js';
|
||||
|
||||
import { flags } from '@/entrypoint/utils/targets';
|
||||
import { SourcererEmbed, SourcererOutput, makeEmbed, makeSourcerer } from '@/providers/base';
|
||||
import { MovieScrapeContext, ShowScrapeContext } from '@/utils/context';
|
||||
import { fetchTMDBName } from '@/utils/tmdb';
|
||||
|
|
@ -81,7 +82,7 @@ export const dopeboxScraper = makeSourcerer({
|
|||
id: 'dopebox',
|
||||
name: 'Dopebox',
|
||||
rank: 197,
|
||||
flags: ['cors-allowed'],
|
||||
flags: [flags.CORS_ALLOWED],
|
||||
scrapeMovie: comboScraper,
|
||||
scrapeShow: comboScraper,
|
||||
});
|
||||
|
|
@ -91,7 +92,7 @@ export const dopeboxEmbeds = [
|
|||
id: 'dopebox-upcloud',
|
||||
name: 'UpCloud',
|
||||
rank: 101,
|
||||
flags: ['cors-allowed'],
|
||||
flags: [flags.CORS_ALLOWED],
|
||||
scrape: scrapeUpCloudEmbed,
|
||||
}),
|
||||
];
|
||||
|
|
|
|||
|
|
@ -1,8 +1,10 @@
|
|||
import * as cheerio from 'cheerio';
|
||||
|
||||
import { flags } from '@/entrypoint/utils/targets';
|
||||
import { EmbedOutput } from '@/providers/base';
|
||||
import { Stream } from '@/providers/streams';
|
||||
import { EmbedScrapeContext } from '@/utils/context';
|
||||
import { createM3U8ProxyUrl } from '@/utils/proxy';
|
||||
|
||||
import {
|
||||
BASE_URL,
|
||||
|
|
@ -155,18 +157,20 @@ export async function scrapeUpCloudEmbed(ctx: EmbedScrapeContext): Promise<Embed
|
|||
};
|
||||
}
|
||||
|
||||
const streamHeaders = {
|
||||
Referer: 'https://streameeeeee.site/',
|
||||
Origin: 'https://streameeeeee.site',
|
||||
};
|
||||
|
||||
return {
|
||||
stream: (response.body.sources as any[]).map((source: any, i: number): Stream => {
|
||||
return {
|
||||
type: 'hls',
|
||||
id: `stream-${i}`,
|
||||
flags: ['cors-allowed'],
|
||||
flags: [flags.CORS_ALLOWED],
|
||||
captions: [],
|
||||
playlist: source.file,
|
||||
headers: {
|
||||
Referer: 'https://streameeeeee.site/',
|
||||
Origin: 'https://streameeeeee.site',
|
||||
},
|
||||
playlist: createM3U8ProxyUrl(source.file, ctx.features, streamHeaders),
|
||||
headers: streamHeaders,
|
||||
};
|
||||
}) as Stream[],
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
import * as cheerio from 'cheerio';
|
||||
import type { CheerioAPI } from 'cheerio';
|
||||
|
||||
import { flags } from '@/entrypoint/utils/targets';
|
||||
import { FetcherResponse } from '@/fetchers/types';
|
||||
import { EmbedScrapeContext, ScrapeContext } from '@/utils/context';
|
||||
|
||||
|
|
@ -109,7 +110,7 @@ export async function scrapeDoodstreamEmbed(ctx: EmbedScrapeContext): Promise<Em
|
|||
{
|
||||
type: 'file',
|
||||
id: 'primary',
|
||||
flags: ['cors-allowed'],
|
||||
flags: [flags.CORS_ALLOWED],
|
||||
captions: [],
|
||||
qualities: {
|
||||
unknown: {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
import * as cheerio from 'cheerio';
|
||||
import type { CheerioAPI } from 'cheerio';
|
||||
|
||||
import { flags } from '@/entrypoint/utils/targets';
|
||||
import { FetcherResponse } from '@/fetchers/types';
|
||||
import { SourcererEmbed, SourcererOutput, makeEmbed, makeSourcerer } from '@/providers/base';
|
||||
import { MovieScrapeContext, ScrapeContext, ShowScrapeContext } from '@/utils/context';
|
||||
|
|
@ -121,8 +122,8 @@ async function comboScraper(ctx: ShowScrapeContext | MovieScrapeContext): Promis
|
|||
export const fsOnlineScraper = makeSourcerer({
|
||||
id: 'fsonline',
|
||||
name: 'FSOnline',
|
||||
rank: 189,
|
||||
flags: ['cors-allowed'],
|
||||
rank: 167,
|
||||
flags: [flags.CORS_ALLOWED],
|
||||
scrapeMovie: comboScraper,
|
||||
scrapeShow: comboScraper,
|
||||
});
|
||||
|
|
@ -133,13 +134,13 @@ export const fsOnlineEmbeds = [
|
|||
name: 'Doodstream',
|
||||
rank: 172,
|
||||
scrape: scrapeDoodstreamEmbed,
|
||||
flags: ['cors-allowed'],
|
||||
flags: [flags.CORS_ALLOWED],
|
||||
}),
|
||||
// makeEmbed({
|
||||
// id: 'fsonline-filemoon',
|
||||
// name: 'Filemoon',
|
||||
// rank: 2002,
|
||||
// scrape: scrapeFilemoonEmbed,
|
||||
// flags: ['cors-allowed'],
|
||||
// flags: [flags.CORS_ALLOWED],
|
||||
// }),
|
||||
];
|
||||
|
|
|
|||
Loading…
Reference in a new issue