mirror of
https://github.com/p-stream/providers.git
synced 2026-04-21 05:02:25 +00:00
make cloudnestra require extension
This commit is contained in:
parent
2bc79b409a
commit
6bea2a2ee5
1 changed files with 5 additions and 5 deletions
|
|
@ -1,9 +1,7 @@
|
||||||
import type { ShowMedia } from '@/entrypoint/utils/media';
|
import type { ShowMedia } from '@/entrypoint/utils/media';
|
||||||
import { flags } from '@/entrypoint/utils/targets';
|
|
||||||
import { SourcererOutput, makeSourcerer } from '@/providers/base';
|
import { SourcererOutput, makeSourcerer } from '@/providers/base';
|
||||||
import { MovieScrapeContext, ShowScrapeContext } from '@/utils/context';
|
import { MovieScrapeContext, ShowScrapeContext } from '@/utils/context';
|
||||||
import { NotFoundError } from '@/utils/errors';
|
import { NotFoundError } from '@/utils/errors';
|
||||||
import { createM3U8ProxyUrl } from '@/utils/proxy';
|
|
||||||
|
|
||||||
import { decode, mirza } from './decrypt';
|
import { decode, mirza } from './decrypt';
|
||||||
|
|
||||||
|
|
@ -102,8 +100,10 @@ async function vidsrcScrape(ctx: MovieScrapeContext | ShowScrapeContext): Promis
|
||||||
{
|
{
|
||||||
id: 'vidsrc-cloudnestra',
|
id: 'vidsrc-cloudnestra',
|
||||||
type: 'hls',
|
type: 'hls',
|
||||||
playlist: createM3U8ProxyUrl(streamUrl, headers),
|
playlist: streamUrl,
|
||||||
flags: [flags.CORS_ALLOWED],
|
headers,
|
||||||
|
proxyDepth: 2,
|
||||||
|
flags: [],
|
||||||
captions: [],
|
captions: [],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
@ -115,7 +115,7 @@ export const vidsrcScraper = makeSourcerer({
|
||||||
id: 'cloudnestra',
|
id: 'cloudnestra',
|
||||||
name: 'Cloudnestra',
|
name: 'Cloudnestra',
|
||||||
rank: 180,
|
rank: 180,
|
||||||
flags: [flags.CORS_ALLOWED],
|
flags: [],
|
||||||
scrapeMovie: vidsrcScrape,
|
scrapeMovie: vidsrcScrape,
|
||||||
scrapeShow: vidsrcScrape,
|
scrapeShow: vidsrcScrape,
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue