mirror of
https://github.com/p-stream/providers.git
synced 2026-03-11 17:55:36 +00:00
proxy catflix/turbovid stream
This commit is contained in:
parent
9f84312718
commit
1315cfcd07
2 changed files with 9 additions and 5 deletions
|
|
@ -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: [],
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue