more changes

This commit is contained in:
TPN
2024-04-01 15:46:45 +00:00
parent f6871f8c64
commit 32e8bd39fa
2 changed files with 1 additions and 3 deletions

View File

@@ -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,
});

View File

@@ -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');