mirror of
https://github.com/movie-web/providers.git
synced 2025-09-13 13:33:25 +00:00
Use proxy & reorder
This commit is contained in:
@@ -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,
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user