mirror of
https://github.com/p-stream/providers.git
synced 2026-03-11 17:55:36 +00:00
Use proxy & reorder
This commit is contained in:
parent
a03fe2825a
commit
f1b962dd5d
4 changed files with 11 additions and 5 deletions
|
|
@ -51,7 +51,7 @@ export const doodScraper = makeEmbed({
|
|||
},
|
||||
},
|
||||
headers: {
|
||||
Referer: 'https://d0000d.com/',
|
||||
Referer: baseUrl,
|
||||
},
|
||||
},
|
||||
],
|
||||
|
|
|
|||
|
|
@ -29,6 +29,9 @@ export const streamtapeScraper = makeEmbed({
|
|||
url,
|
||||
},
|
||||
},
|
||||
headers: {
|
||||
Referer: 'https://streamtape.com',
|
||||
},
|
||||
},
|
||||
],
|
||||
};
|
||||
|
|
|
|||
|
|
@ -23,6 +23,9 @@ export const voeScraper = makeEmbed({
|
|||
playlist: streamUrl,
|
||||
flags: [flags.CORS_ALLOWED],
|
||||
captions: [],
|
||||
headers: {
|
||||
Referer: 'https://voe.sx',
|
||||
},
|
||||
},
|
||||
],
|
||||
};
|
||||
|
|
|
|||
|
|
@ -71,13 +71,13 @@ async function getStreams(title: string) {
|
|||
export const primewireScraper = makeSourcerer({
|
||||
id: 'primewire',
|
||||
name: 'Primewire',
|
||||
rank: 350,
|
||||
rank: 250,
|
||||
flags: [flags.CORS_ALLOWED],
|
||||
async scrapeMovie(ctx) {
|
||||
if (!ctx.media.imdbId) throw new Error('No imdbId provided');
|
||||
const searchResult = await search(ctx, ctx.media.imdbId);
|
||||
|
||||
const title = await ctx.fetcher<string>(`movie/${searchResult}`, {
|
||||
const title = await ctx.proxiedFetcher<string>(`movie/${searchResult}`, {
|
||||
baseUrl: primewireBase,
|
||||
});
|
||||
|
||||
|
|
@ -91,7 +91,7 @@ export const primewireScraper = makeSourcerer({
|
|||
if (!ctx.media.imdbId) throw new Error('No imdbId provided');
|
||||
const searchResult = await search(ctx, ctx.media.imdbId);
|
||||
|
||||
const season = await ctx.fetcher<string>(`tv/${searchResult}`, {
|
||||
const season = await ctx.proxiedFetcher<string>(`tv/${searchResult}`, {
|
||||
baseUrl: primewireBase,
|
||||
});
|
||||
|
||||
|
|
@ -105,7 +105,7 @@ export const primewireScraper = makeSourcerer({
|
|||
|
||||
if (!episodeLink) throw new NotFoundError('No episode links found');
|
||||
|
||||
const title = await ctx.fetcher<string>(episodeLink, {
|
||||
const title = await ctx.proxiedFetcher<string>(episodeLink, {
|
||||
baseUrl: primewireBase,
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue