attempt to proxy viper (embed.su)

This commit is contained in:
Pas 2025-03-14 20:47:13 -06:00
parent 6919101b97
commit 61ba3069ce
2 changed files with 5 additions and 2 deletions

View file

@ -21,12 +21,15 @@ export const viperScraper = makeEmbed({
}
const playlistUrl = apiResponse.body.source.replace(/^.*\/viper\//, 'https://');
// You need to set a proxy for flixhq CDN streams. Set up your own from this repo: https://github.com/Pasithea0/M3U8-Proxy
const proxiedPlaylist = `https://proxy-m3u8.uira.live/m3u8-proxy?url=${encodeURIComponent(playlistUrl)}&headers=${encodeURIComponent(JSON.stringify({ Referer: 'https://megacloud.store/' }))}`;
return {
stream: [
{
type: 'hls',
id: 'primary',
playlist: playlistUrl,
playlist: proxiedPlaylist,
flags: [flags.CORS_ALLOWED],
captions: [],
},

View file

@ -65,7 +65,7 @@ export const embedsuScraper = makeSourcerer({
id: 'embedsu',
name: 'embed.su',
rank: 240,
disabled: true,
disabled: false,
flags: [flags.CORS_ALLOWED],
scrapeMovie: comboScraper,
scrapeShow: comboScraper,