mirror of
https://github.com/sussy-code/providers.git
synced 2026-03-29 05:58:41 +00:00
Disable Nepu
This commit is contained in:
parent
19ddec8eed
commit
f1b02800f7
1 changed files with 8 additions and 2 deletions
|
|
@ -9,6 +9,7 @@ import { NotFoundError } from '@/utils/errors';
|
|||
import { SearchResults } from './types';
|
||||
|
||||
const nepuBase = 'https://nepu.io';
|
||||
const nepuReferer = 'https://nepu.to';
|
||||
|
||||
const universalScraper = async (ctx: MovieScrapeContext | ShowScrapeContext) => {
|
||||
const searchResultRequest = await ctx.proxiedFetcher<string>('/ajax/posts', {
|
||||
|
|
@ -63,7 +64,11 @@ const universalScraper = async (ctx: MovieScrapeContext | ShowScrapeContext) =>
|
|||
captions: [],
|
||||
playlist: streamUrl[1],
|
||||
type: 'hls',
|
||||
flags: [flags.CORS_ALLOWED],
|
||||
headers: {
|
||||
Origin: nepuReferer,
|
||||
Referer: `${nepuReferer}/`,
|
||||
},
|
||||
flags: [],
|
||||
},
|
||||
],
|
||||
} as SourcererOutput;
|
||||
|
|
@ -73,7 +78,8 @@ export const nepuScraper = makeSourcerer({
|
|||
id: 'nepu',
|
||||
name: 'Nepu',
|
||||
rank: 80,
|
||||
flags: [flags.CORS_ALLOWED],
|
||||
disabled: true,
|
||||
flags: [],
|
||||
scrapeMovie: universalScraper,
|
||||
scrapeShow: universalScraper,
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue