mirror of
https://github.com/p-stream/providers.git
synced 2026-03-11 17:55:36 +00:00
simple fix to stop porn
This commit is contained in:
parent
421327884d
commit
2298bcb0e1
1 changed files with 6 additions and 2 deletions
|
|
@ -29,9 +29,12 @@ async function comboScraper(ctx: ShowScrapeContext | MovieScrapeContext): Promis
|
|||
throw new NotFoundError('No streams found');
|
||||
}
|
||||
|
||||
if (res.stream.url === 'https://vidzee.wtf/playlist/69/master.m3u8') {
|
||||
throw new NotFoundError('Found only vidzee porn stream');
|
||||
}
|
||||
|
||||
const streamUrl = res.stream.url;
|
||||
const streamHost = new URL(streamUrl).host;
|
||||
|
||||
const m3u8Headers = {
|
||||
...headers,
|
||||
host: streamHost,
|
||||
|
|
@ -47,7 +50,8 @@ async function comboScraper(ctx: ShowScrapeContext | MovieScrapeContext): Promis
|
|||
{
|
||||
id: 'primary',
|
||||
type: 'hls',
|
||||
playlist: createM3U8ProxyUrl(streamUrl, m3u8Headers),
|
||||
playlist: streamUrl,
|
||||
headers: m3u8Headers,
|
||||
flags: [flags.CORS_ALLOWED],
|
||||
captions: [],
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue