proxy rgshows

This commit is contained in:
Pas 2025-08-14 09:36:39 -06:00
parent e32826068d
commit 2a8110b4a9

View file

@ -1,6 +1,7 @@
import { flags } from '@/entrypoint/utils/targets';
import { MovieScrapeContext, ShowScrapeContext } from '@/utils/context';
import { NotFoundError } from '@/utils/errors';
import { createM3U8ProxyUrl } from '@/utils/proxy';
import { SourcererOutput, makeSourcerer } from '../base';
@ -46,8 +47,7 @@ async function comboScraper(ctx: ShowScrapeContext | MovieScrapeContext): Promis
{
id: 'primary',
type: 'hls',
playlist: streamUrl,
headers: m3u8Headers,
playlist: createM3U8ProxyUrl(streamUrl, m3u8Headers),
flags: [flags.CORS_ALLOWED],
captions: [],
},