From bf073be73efff44eb750819ed58c49613dcff1c2 Mon Sep 17 00:00:00 2001 From: Pas <74743263+Pasithea0@users.noreply.github.com> Date: Tue, 16 Dec 2025 10:51:46 -0700 Subject: [PATCH] update vlod's sources --- src/providers/sources/dopebox/index.ts | 5 +++-- src/providers/sources/dopebox/upcloud.ts | 16 ++++++++++------ src/providers/sources/fsonline/doodstream.ts | 3 ++- src/providers/sources/fsonline/index.ts | 9 +++++---- 4 files changed, 20 insertions(+), 13 deletions(-) diff --git a/src/providers/sources/dopebox/index.ts b/src/providers/sources/dopebox/index.ts index 7992267..6b953cf 100644 --- a/src/providers/sources/dopebox/index.ts +++ b/src/providers/sources/dopebox/index.ts @@ -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, }), ]; diff --git a/src/providers/sources/dopebox/upcloud.ts b/src/providers/sources/dopebox/upcloud.ts index 2d2ada7..6151e00 100644 --- a/src/providers/sources/dopebox/upcloud.ts +++ b/src/providers/sources/dopebox/upcloud.ts @@ -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 { 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[], }; diff --git a/src/providers/sources/fsonline/doodstream.ts b/src/providers/sources/fsonline/doodstream.ts index 9f22642..bcbbc07 100644 --- a/src/providers/sources/fsonline/doodstream.ts +++ b/src/providers/sources/fsonline/doodstream.ts @@ -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