update vlod's sources

This commit is contained in:
Pas 2025-12-16 10:51:46 -07:00
parent 063b992b09
commit bf073be73e
4 changed files with 20 additions and 13 deletions

View file

@ -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,
}),
];

View file

@ -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[],
};

View file

@ -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: {

View file

@ -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],
// }),
];