From e73b8725909107a70df07b89114aa933c09d6bc8 Mon Sep 17 00:00:00 2001 From: Pas <74743263+Pasithea0@users.noreply.github.com> Date: Mon, 12 May 2025 14:18:27 -0600 Subject: [PATCH] update cuevana for non ext --- src/providers/embeds/streamwish.ts | 6 +----- src/providers/sources/cuevana3.ts | 3 ++- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/providers/embeds/streamwish.ts b/src/providers/embeds/streamwish.ts index 4e7ccfd..d795708 100644 --- a/src/providers/embeds/streamwish.ts +++ b/src/providers/embeds/streamwish.ts @@ -48,12 +48,8 @@ function embed(provider: { id: string; name: string; rank: number }) { id: 'primary', type: 'hls', playlist: videoUrl, - flags: [], + flags: [flags.CORS_ALLOWED], captions: [], - headers: { - Referer: 'https://streamwish.to/', - Origin: 'https://streamwish.to', - }, }, ], }; diff --git a/src/providers/sources/cuevana3.ts b/src/providers/sources/cuevana3.ts index 76f20e3..428f873 100644 --- a/src/providers/sources/cuevana3.ts +++ b/src/providers/sources/cuevana3.ts @@ -1,5 +1,6 @@ import { load } from 'cheerio'; +import { flags } from '@/entrypoint/utils/targets'; import { SourcererOutput, makeSourcerer } from '@/providers/base'; import { MovieScrapeContext, ShowScrapeContext } from '@/utils/context'; import { NotFoundError } from '@/utils/errors'; @@ -228,7 +229,7 @@ export const cuevana3Scraper = makeSourcerer({ name: 'Cuevana3', rank: 80, disabled: false, - flags: [], + flags: [flags.CORS_ALLOWED], scrapeMovie: comboScraper, scrapeShow: comboScraper, });