mirror of
https://github.com/movie-web/providers.git
synced 2025-09-13 13:33:25 +00:00
make required changes
This commit is contained in:
@@ -18,7 +18,10 @@ export const mixdropScraper = makeEmbed({
|
|||||||
// this also handels the case where preview page urls are returned
|
// this also handels the case where preview page urls are returned
|
||||||
// Example: https://mixdrop.vc/f/pkwrgp0pizgod0
|
// Example: https://mixdrop.vc/f/pkwrgp0pizgod0
|
||||||
// these don't have the packed code
|
// these don't have the packed code
|
||||||
const streamRes = await ctx.proxiedFetcher<string>(`https://mixdrop.si/e/${embedId}`);
|
const mixdropBase = 'https://mixdrop.ag';
|
||||||
|
const streamRes = await ctx.proxiedFetcher<string>(`/e/${embedId}`, {
|
||||||
|
baseUrl: mixdropBase,
|
||||||
|
});
|
||||||
const packed = streamRes.match(packedRegex);
|
const packed = streamRes.match(packedRegex);
|
||||||
|
|
||||||
// MixDrop uses a queue system for embeds
|
// MixDrop uses a queue system for embeds
|
||||||
@@ -51,7 +54,7 @@ export const mixdropScraper = makeEmbed({
|
|||||||
url: url.startsWith('http') ? url : `https:${url}`, // URLs don't always start with the protocol
|
url: url.startsWith('http') ? url : `https:${url}`, // URLs don't always start with the protocol
|
||||||
headers: {
|
headers: {
|
||||||
// MixDrop requires this header on all streams
|
// MixDrop requires this header on all streams
|
||||||
Referer: 'https://mixdrop.co/',
|
Referer: mixdropBase,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@@ -103,32 +103,32 @@ export const goMoviesScraper = makeSourcerer({
|
|||||||
const embeds = [
|
const embeds = [
|
||||||
{
|
{
|
||||||
embedId: upcloudScraper.id,
|
embedId: upcloudScraper.id,
|
||||||
url: upcloudSource?.link ?? null,
|
url: upcloudSource?.link,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
embedId: vidCloudScraper.id,
|
embedId: vidCloudScraper.id,
|
||||||
url: vidcloudSource?.link ?? null,
|
url: vidcloudSource?.link,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
embedId: voeScraper.id,
|
embedId: voeScraper.id,
|
||||||
url: voeSource?.link ?? null,
|
url: voeSource?.link,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
embedId: doodScraper.id,
|
embedId: doodScraper.id,
|
||||||
url: doodSource?.link ?? null,
|
url: doodSource?.link,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
embedId: upstreamScraper.id,
|
embedId: upstreamScraper.id,
|
||||||
url: upstreamSource?.link ?? null,
|
url: upstreamSource?.link,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
embedId: mixdropScraper.id,
|
embedId: mixdropScraper.id,
|
||||||
url: mixdropSource?.link ?? null,
|
url: mixdropSource?.link,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
const filteredEmbeds = embeds
|
const filteredEmbeds = embeds
|
||||||
.filter((embed) => embed.url !== null)
|
.filter((embed) => embed.url)
|
||||||
.map((embed) => ({
|
.map((embed) => ({
|
||||||
embedId: embed.embedId,
|
embedId: embed.embedId,
|
||||||
url: embed.url as string,
|
url: embed.url as string,
|
||||||
@@ -186,32 +186,32 @@ export const goMoviesScraper = makeSourcerer({
|
|||||||
const embeds = [
|
const embeds = [
|
||||||
{
|
{
|
||||||
embedId: upcloudScraper.id,
|
embedId: upcloudScraper.id,
|
||||||
url: upcloudSource?.link ?? null,
|
url: upcloudSource?.link,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
embedId: vidCloudScraper.id,
|
embedId: vidCloudScraper.id,
|
||||||
url: vidcloudSource?.link ?? null,
|
url: vidcloudSource?.link,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
embedId: voeScraper.id,
|
embedId: voeScraper.id,
|
||||||
url: voeSource?.link ?? null,
|
url: voeSource?.link,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
embedId: doodScraper.id,
|
embedId: doodScraper.id,
|
||||||
url: doodSource?.link ?? null,
|
url: doodSource?.link,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
embedId: upstreamScraper.id,
|
embedId: upstreamScraper.id,
|
||||||
url: upstreamSource?.link ?? null,
|
url: upstreamSource?.link,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
embedId: mixdropScraper.id,
|
embedId: mixdropScraper.id,
|
||||||
url: mixdropSource?.link ?? null,
|
url: mixdropSource?.link,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
const filteredEmbeds = embeds
|
const filteredEmbeds = embeds
|
||||||
.filter((embed) => embed.url !== null)
|
.filter((embed) => embed.url)
|
||||||
.map((embed) => ({
|
.map((embed) => ({
|
||||||
embedId: embed.embedId,
|
embedId: embed.embedId,
|
||||||
url: embed.url as string,
|
url: embed.url as string,
|
||||||
|
Reference in New Issue
Block a user