diff --git a/src/providers/embeds/rivestream.ts b/src/providers/embeds/rivestream.ts index 1490810..6126823 100644 --- a/src/providers/embeds/rivestream.ts +++ b/src/providers/embeds/rivestream.ts @@ -1,7 +1,5 @@ /* eslint-disable no-console */ -import { flags } from '@/entrypoint/utils/targets'; import { NotFoundError } from '@/utils/errors'; -import { createM3U8ProxyUrl } from '@/utils/proxy'; import { EmbedOutput, makeEmbed } from '../base'; import { labelToLanguageCode } from '../captions'; @@ -105,7 +103,8 @@ export function makeRivestreamEmbed(id: string, rank: number = 100) { id: 'primary', type: 'file', qualities, - flags: [flags.CORS_ALLOWED], + headers, + flags: [], captions, }, ], @@ -118,8 +117,9 @@ export function makeRivestreamEmbed(id: string, rank: number = 100) { { id: 'primary', type: 'hls', - playlist: createM3U8ProxyUrl(firstSource.url, headers), - flags: [flags.CORS_ALLOWED], + playlist: firstSource.url, + headers, + flags: [], captions, }, ], diff --git a/src/providers/sources/rivestream.ts b/src/providers/sources/rivestream.ts index bc2ea26..f83c576 100644 --- a/src/providers/sources/rivestream.ts +++ b/src/providers/sources/rivestream.ts @@ -1,4 +1,3 @@ -import { flags } from '@/entrypoint/utils/targets'; import { SourcererOutput, makeSourcerer } from '@/providers/base'; import { MovieScrapeContext, ShowScrapeContext } from '@/utils/context'; @@ -122,7 +121,7 @@ export const rivestreamScraper = makeSourcerer({ name: 'Rivestream', rank: 134, disabled: false, - flags: [flags.CORS_ALLOWED], + flags: [], scrapeMovie: comboScraper, scrapeShow: comboScraper, });