mirror of
https://github.com/sussy-code/providers.git
synced 2026-04-21 00:22:07 +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';
|
import { SearchResults } from './types';
|
||||||
|
|
||||||
const nepuBase = 'https://nepu.io';
|
const nepuBase = 'https://nepu.io';
|
||||||
|
const nepuReferer = 'https://nepu.to';
|
||||||
|
|
||||||
const universalScraper = async (ctx: MovieScrapeContext | ShowScrapeContext) => {
|
const universalScraper = async (ctx: MovieScrapeContext | ShowScrapeContext) => {
|
||||||
const searchResultRequest = await ctx.proxiedFetcher<string>('/ajax/posts', {
|
const searchResultRequest = await ctx.proxiedFetcher<string>('/ajax/posts', {
|
||||||
|
|
@ -63,7 +64,11 @@ const universalScraper = async (ctx: MovieScrapeContext | ShowScrapeContext) =>
|
||||||
captions: [],
|
captions: [],
|
||||||
playlist: streamUrl[1],
|
playlist: streamUrl[1],
|
||||||
type: 'hls',
|
type: 'hls',
|
||||||
flags: [flags.CORS_ALLOWED],
|
headers: {
|
||||||
|
Origin: nepuReferer,
|
||||||
|
Referer: `${nepuReferer}/`,
|
||||||
|
},
|
||||||
|
flags: [],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
} as SourcererOutput;
|
} as SourcererOutput;
|
||||||
|
|
@ -73,7 +78,8 @@ export const nepuScraper = makeSourcerer({
|
||||||
id: 'nepu',
|
id: 'nepu',
|
||||||
name: 'Nepu',
|
name: 'Nepu',
|
||||||
rank: 80,
|
rank: 80,
|
||||||
flags: [flags.CORS_ALLOWED],
|
disabled: true,
|
||||||
|
flags: [],
|
||||||
scrapeMovie: universalScraper,
|
scrapeMovie: universalScraper,
|
||||||
scrapeShow: universalScraper,
|
scrapeShow: universalScraper,
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue