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 Fuse from 'fuse.js';
|
||||||
|
|
||||||
|
import { flags } from '@/entrypoint/utils/targets';
|
||||||
import { SourcererEmbed, SourcererOutput, makeEmbed, makeSourcerer } from '@/providers/base';
|
import { SourcererEmbed, SourcererOutput, makeEmbed, makeSourcerer } from '@/providers/base';
|
||||||
import { MovieScrapeContext, ShowScrapeContext } from '@/utils/context';
|
import { MovieScrapeContext, ShowScrapeContext } from '@/utils/context';
|
||||||
import { fetchTMDBName } from '@/utils/tmdb';
|
import { fetchTMDBName } from '@/utils/tmdb';
|
||||||
|
|
@ -81,7 +82,7 @@ export const dopeboxScraper = makeSourcerer({
|
||||||
id: 'dopebox',
|
id: 'dopebox',
|
||||||
name: 'Dopebox',
|
name: 'Dopebox',
|
||||||
rank: 197,
|
rank: 197,
|
||||||
flags: ['cors-allowed'],
|
flags: [flags.CORS_ALLOWED],
|
||||||
scrapeMovie: comboScraper,
|
scrapeMovie: comboScraper,
|
||||||
scrapeShow: comboScraper,
|
scrapeShow: comboScraper,
|
||||||
});
|
});
|
||||||
|
|
@ -91,7 +92,7 @@ export const dopeboxEmbeds = [
|
||||||
id: 'dopebox-upcloud',
|
id: 'dopebox-upcloud',
|
||||||
name: 'UpCloud',
|
name: 'UpCloud',
|
||||||
rank: 101,
|
rank: 101,
|
||||||
flags: ['cors-allowed'],
|
flags: [flags.CORS_ALLOWED],
|
||||||
scrape: scrapeUpCloudEmbed,
|
scrape: scrapeUpCloudEmbed,
|
||||||
}),
|
}),
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,10 @@
|
||||||
import * as cheerio from 'cheerio';
|
import * as cheerio from 'cheerio';
|
||||||
|
|
||||||
|
import { flags } from '@/entrypoint/utils/targets';
|
||||||
import { EmbedOutput } from '@/providers/base';
|
import { EmbedOutput } from '@/providers/base';
|
||||||
import { Stream } from '@/providers/streams';
|
import { Stream } from '@/providers/streams';
|
||||||
import { EmbedScrapeContext } from '@/utils/context';
|
import { EmbedScrapeContext } from '@/utils/context';
|
||||||
|
import { createM3U8ProxyUrl } from '@/utils/proxy';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
BASE_URL,
|
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 {
|
return {
|
||||||
stream: (response.body.sources as any[]).map((source: any, i: number): Stream => {
|
stream: (response.body.sources as any[]).map((source: any, i: number): Stream => {
|
||||||
return {
|
return {
|
||||||
type: 'hls',
|
type: 'hls',
|
||||||
id: `stream-${i}`,
|
id: `stream-${i}`,
|
||||||
flags: ['cors-allowed'],
|
flags: [flags.CORS_ALLOWED],
|
||||||
captions: [],
|
captions: [],
|
||||||
playlist: source.file,
|
playlist: createM3U8ProxyUrl(source.file, ctx.features, streamHeaders),
|
||||||
headers: {
|
headers: streamHeaders,
|
||||||
Referer: 'https://streameeeeee.site/',
|
|
||||||
Origin: 'https://streameeeeee.site',
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
}) as Stream[],
|
}) as Stream[],
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
import * as cheerio from 'cheerio';
|
import * as cheerio from 'cheerio';
|
||||||
import type { CheerioAPI } from 'cheerio';
|
import type { CheerioAPI } from 'cheerio';
|
||||||
|
|
||||||
|
import { flags } from '@/entrypoint/utils/targets';
|
||||||
import { FetcherResponse } from '@/fetchers/types';
|
import { FetcherResponse } from '@/fetchers/types';
|
||||||
import { EmbedScrapeContext, ScrapeContext } from '@/utils/context';
|
import { EmbedScrapeContext, ScrapeContext } from '@/utils/context';
|
||||||
|
|
||||||
|
|
@ -109,7 +110,7 @@ export async function scrapeDoodstreamEmbed(ctx: EmbedScrapeContext): Promise<Em
|
||||||
{
|
{
|
||||||
type: 'file',
|
type: 'file',
|
||||||
id: 'primary',
|
id: 'primary',
|
||||||
flags: ['cors-allowed'],
|
flags: [flags.CORS_ALLOWED],
|
||||||
captions: [],
|
captions: [],
|
||||||
qualities: {
|
qualities: {
|
||||||
unknown: {
|
unknown: {
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
import * as cheerio from 'cheerio';
|
import * as cheerio from 'cheerio';
|
||||||
import type { CheerioAPI } from 'cheerio';
|
import type { CheerioAPI } from 'cheerio';
|
||||||
|
|
||||||
|
import { flags } from '@/entrypoint/utils/targets';
|
||||||
import { FetcherResponse } from '@/fetchers/types';
|
import { FetcherResponse } from '@/fetchers/types';
|
||||||
import { SourcererEmbed, SourcererOutput, makeEmbed, makeSourcerer } from '@/providers/base';
|
import { SourcererEmbed, SourcererOutput, makeEmbed, makeSourcerer } from '@/providers/base';
|
||||||
import { MovieScrapeContext, ScrapeContext, ShowScrapeContext } from '@/utils/context';
|
import { MovieScrapeContext, ScrapeContext, ShowScrapeContext } from '@/utils/context';
|
||||||
|
|
@ -121,8 +122,8 @@ async function comboScraper(ctx: ShowScrapeContext | MovieScrapeContext): Promis
|
||||||
export const fsOnlineScraper = makeSourcerer({
|
export const fsOnlineScraper = makeSourcerer({
|
||||||
id: 'fsonline',
|
id: 'fsonline',
|
||||||
name: 'FSOnline',
|
name: 'FSOnline',
|
||||||
rank: 189,
|
rank: 167,
|
||||||
flags: ['cors-allowed'],
|
flags: [flags.CORS_ALLOWED],
|
||||||
scrapeMovie: comboScraper,
|
scrapeMovie: comboScraper,
|
||||||
scrapeShow: comboScraper,
|
scrapeShow: comboScraper,
|
||||||
});
|
});
|
||||||
|
|
@ -133,13 +134,13 @@ export const fsOnlineEmbeds = [
|
||||||
name: 'Doodstream',
|
name: 'Doodstream',
|
||||||
rank: 172,
|
rank: 172,
|
||||||
scrape: scrapeDoodstreamEmbed,
|
scrape: scrapeDoodstreamEmbed,
|
||||||
flags: ['cors-allowed'],
|
flags: [flags.CORS_ALLOWED],
|
||||||
}),
|
}),
|
||||||
// makeEmbed({
|
// makeEmbed({
|
||||||
// id: 'fsonline-filemoon',
|
// id: 'fsonline-filemoon',
|
||||||
// name: 'Filemoon',
|
// name: 'Filemoon',
|
||||||
// rank: 2002,
|
// rank: 2002,
|
||||||
// scrape: scrapeFilemoonEmbed,
|
// scrape: scrapeFilemoonEmbed,
|
||||||
// flags: ['cors-allowed'],
|
// flags: [flags.CORS_ALLOWED],
|
||||||
// }),
|
// }),
|
||||||
];
|
];
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue