Update turbovid.ts

This commit is contained in:
Pas 2025-11-08 14:21:04 -07:00
parent 8d762d2f42
commit 50a600ab34

View file

@ -1,6 +1,5 @@
import { flags } from '@/entrypoint/utils/targets';
import { makeEmbed } from '@/providers/base';
import { createM3U8ProxyUrl } from '@/utils/proxy';
// Thanks to Paradox_77 for helping with the decryption
function hexToChar(hex: string): string {
@ -95,8 +94,8 @@ export const turbovidScraper = makeEmbed({
{
type: 'hls',
id: 'primary',
playlist: createM3U8ProxyUrl(playlist, ctx.features, streamHeaders),
headers: streamHeaders,
playlist,
preferredHeaders: streamHeaders,
flags: [flags.CORS_ALLOWED],
captions: [],
},