Disable Nepu

This commit is contained in:
TPN 2024-07-03 14:57:54 +01:00
parent 19ddec8eed
commit f1b02800f7
No known key found for this signature in database
GPG key ID: 40AE091637892B91

View file

@ -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,
});