mirror of
https://github.com/sussy-code/providers.git
synced 2026-08-12 10:00:57 +00:00
attempt to proxy viper (embed.su)
This commit is contained in:
parent
6919101b97
commit
61ba3069ce
2 changed files with 5 additions and 2 deletions
|
|
@ -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: [],
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue