proxy catflix/turbovid stream

This commit is contained in:
Pas 2025-07-10 17:46:08 -06:00
parent 9f84312718
commit 1315cfcd07
2 changed files with 9 additions and 5 deletions

View file

@ -1,4 +1,5 @@
import { makeEmbed } from '@/providers/base';
import { createM3U8ProxyUrl } from '@/utils/proxy';
// Thanks to Paradox_77 for helping with the decryption
function hexToChar(hex: string): string {
@ -83,16 +84,17 @@ export const turbovidScraper = makeEmbed({
const playlist = decrypt(data, juiceKey);
const streamHeaders = {
referer: `${baseUrl}/`,
origin: baseUrl,
};
return {
stream: [
{
type: 'hls',
id: 'primary',
playlist,
headers: {
referer: `${baseUrl}/`,
origin: baseUrl,
},
playlist: createM3U8ProxyUrl(playlist, streamHeaders),
flags: [],
captions: [],
},

View file

@ -6,6 +6,7 @@ import {
streamwishLatinoScraper,
streamwishSpanishScraper,
} from '@/providers/embeds/streamwish';
import { turbovidScraper } from '@/providers/embeds/turbovid';
import { viperScraper } from '@/providers/embeds/viper';
import { warezcdnembedMp4Scraper } from '@/providers/embeds/warezcdn/mp4';
import { embedsuScraper } from '@/providers/sources/embedsu';
@ -32,6 +33,7 @@ const SKIP_VALIDATION_CHECK_IDS = [
...cinemaosHexaEmbeds.map((e) => e.id),
soaperTvScraper.id,
vidsrcScraper.id,
turbovidScraper.id,
];
export function isValidStream(stream: Stream | undefined): boolean {