mirror of
https://github.com/p-stream/providers.git
synced 2026-05-08 14:10:34 +00:00
use community proxies!
This commit is contained in:
parent
e73b872590
commit
4c1c820322
4 changed files with 6 additions and 6 deletions
|
|
@ -44,7 +44,7 @@ function createProxyUrl(originalUrl: string, referer?: string): string {
|
|||
}),
|
||||
);
|
||||
|
||||
return `https://proxy.fifthwit.net/m3u8-proxy?url=${encodedUrl}&headers=${encodedHeaders}`;
|
||||
return `https://m3u8.moonpic.qzz.io/m3u8-proxy?url=${encodedUrl}&headers=${encodedHeaders}`;
|
||||
}
|
||||
|
||||
function processProxiedURL(url: string): string {
|
||||
|
|
@ -76,7 +76,7 @@ function processProxiedURL(url: string): string {
|
|||
|
||||
// Handle other proxied URLs
|
||||
if (url.includes('/m3u8-proxy?url=')) {
|
||||
return url.replace(/https:\/\/[^/]+\/m3u8-proxy/, 'https://proxy.fifthwit.net/m3u8-proxy');
|
||||
return url.replace(/https:\/\/[^/]+\/m3u8-proxy/, 'https://vidproxy.devoplx.com/m3u8-proxy');
|
||||
}
|
||||
|
||||
return createProxyUrl(url);
|
||||
|
|
|
|||
|
|
@ -128,7 +128,7 @@ function embed(provider: { id: string; rank: number; name: string; server: strin
|
|||
{
|
||||
id: 'primary',
|
||||
captions,
|
||||
playlist: `https://proxy.fifthwit.net/m3u8-proxy?url=${encodeURIComponent(streams.unknown)}&headers=${encodeURIComponent(JSON.stringify({ ...(data.headers.Referer && { referer: data.headers.Referer }), ...(data.headers.Origin && { origin: data.headers.Origin }) }))}`,
|
||||
playlist: `https://vidproxy.devoplx.com/m3u8-proxy?url=${encodeURIComponent(streams.unknown)}&headers=${encodeURIComponent(JSON.stringify({ ...(data.headers.Referer && { referer: data.headers.Referer }), ...(data.headers.Origin && { origin: data.headers.Origin }) }))}`,
|
||||
type: 'hls',
|
||||
flags: [flags.CORS_ALLOWED],
|
||||
...(thumbnailTrack && {
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ export const hianimeHd1DubEmbed = makeEmbed({
|
|||
{
|
||||
type: 'hls',
|
||||
id: 'primary',
|
||||
playlist: `https://proxy-m3u8.uira.live/m3u8-proxy?url=${data.data.sources[0].url}&headers=${encodeURIComponent(JSON.stringify(data.data.headers))}`,
|
||||
playlist: `https://vidproxy.devoplx.com/m3u8-proxy?url=${data.data.sources[0].url}&headers=${encodeURIComponent(JSON.stringify(data.data.headers))}`,
|
||||
flags: [flags.CORS_ALLOWED],
|
||||
captions: [],
|
||||
...(thumbnailTrack
|
||||
|
|
@ -57,7 +57,7 @@ export const hianimeHd2DubEmbed = makeEmbed({
|
|||
{
|
||||
type: 'hls',
|
||||
id: 'primary',
|
||||
playlist: `https://proxy-m3u8.uira.live/m3u8-proxy?url=${data.data.sources[0].url}&headers=${encodeURIComponent(JSON.stringify(data.data.headers))}`,
|
||||
playlist: `https://m3u8.moonpic.qzz.io/m3u8-proxy?url=${data.data.sources[0].url}&headers=${encodeURIComponent(JSON.stringify(data.data.headers))}`,
|
||||
flags: [flags.CORS_ALLOWED],
|
||||
captions: [],
|
||||
...(thumbnailTrack
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ 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.fifthwit.net/m3u8-proxy?url=${encodeURIComponent(playlistUrl)}&headers=${encodeURIComponent(JSON.stringify({ referer: 'https://megacloud.store/', origin: 'https://megacloud.store' }))}`;
|
||||
const proxiedPlaylist = `https://m3u8.moonpic.qzz.io/m3u8-proxy?url=${encodeURIComponent(playlistUrl)}&headers=${encodeURIComponent(JSON.stringify({ referer: 'https://megacloud.store/', origin: 'https://megacloud.store' }))}`;
|
||||
|
||||
return {
|
||||
stream: [
|
||||
|
|
|
|||
Loading…
Reference in a new issue