mirror of
https://github.com/movie-web/providers.git
synced 2025-09-13 09:33:25 +00:00
more changes
This commit is contained in:
@@ -2,6 +2,7 @@ import * as unpacker from 'unpacker';
|
||||
|
||||
import { makeEmbed } from '@/providers/base';
|
||||
|
||||
const mixdropBase = 'https://mixdrop.ag';
|
||||
const packedRegex = /(eval\(function\(p,a,c,k,e,d\){.*{}\)\))/;
|
||||
const linkRegex = /MDCore\.wurl="(.*?)";/;
|
||||
|
||||
@@ -19,7 +20,6 @@ export const mixdropScraper = makeEmbed({
|
||||
// this also handels the case where preview page urls are returned
|
||||
// Example: https://mixdrop.vc/f/pkwrgp0pizgod0
|
||||
// these don't have the packed code
|
||||
const mixdropBase = 'https://mixdrop.ag';
|
||||
const streamRes = await ctx.proxiedFetcher<string>(`/e/${embedId}`, {
|
||||
baseUrl: mixdropBase,
|
||||
});
|
||||
|
@@ -92,7 +92,6 @@ export const goMoviesScraper = makeSourcerer({
|
||||
},
|
||||
});
|
||||
|
||||
// there's a better way to do this but I'm too lazy to do that
|
||||
const upcloudSource = await getSource(ctx, sources, 'upcloud');
|
||||
const vidcloudSource = await getSource(ctx, sources, 'vidcloud');
|
||||
const voeSource = await getSource(ctx, sources, 'voe');
|
||||
@@ -175,7 +174,6 @@ export const goMoviesScraper = makeSourcerer({
|
||||
baseUrl: gomoviesBase,
|
||||
});
|
||||
|
||||
// there's a better way to do this but I'm too lazy to do that
|
||||
const upcloudSource = await getSource(ctx, sources, 'upcloud');
|
||||
const vidcloudSource = await getSource(ctx, sources, 'vidcloud');
|
||||
const voeSource = await getSource(ctx, sources, 'voe');
|
||||
|
Reference in New Issue
Block a user