mirror of
https://github.com/movie-web/providers.git
synced 2025-09-13 13:13:25 +00:00
use worker proxy
This commit is contained in:
@@ -53,3 +53,5 @@ export async function getDecryptedId(ctx: EmbedScrapeContext) {
|
||||
|
||||
return decryptedId;
|
||||
}
|
||||
|
||||
export const warezcdnWorkerProxy = 'https://workerproxy.warezcdn.workers.dev';
|
||||
|
@@ -2,7 +2,7 @@ import { makeEmbed } from '@/providers/base';
|
||||
import { EmbedScrapeContext } from '@/utils/context';
|
||||
import { NotFoundError } from '@/utils/errors';
|
||||
|
||||
import { getDecryptedId } from './common';
|
||||
import { getDecryptedId, warezcdnWorkerProxy } from './common';
|
||||
|
||||
const cdnListing = [50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64];
|
||||
|
||||
@@ -24,7 +24,7 @@ export const warezcdnembedMp4Scraper = makeEmbed({
|
||||
id: 'warezcdnembedmp4', // WarezCDN is both a source and an embed host
|
||||
name: 'WarezCDN MP4',
|
||||
rank: 83,
|
||||
disabled: true, // crashes movie-web player, disabling for now
|
||||
disabled: false,
|
||||
async scrape(ctx) {
|
||||
const decryptedId = await getDecryptedId(ctx);
|
||||
|
||||
@@ -42,15 +42,13 @@ export const warezcdnembedMp4Scraper = makeEmbed({
|
||||
qualities: {
|
||||
unknown: {
|
||||
type: 'mp4',
|
||||
url: streamUrl,
|
||||
url: `${warezcdnWorkerProxy}/?${new URLSearchParams({
|
||||
url: streamUrl,
|
||||
})}`,
|
||||
},
|
||||
},
|
||||
type: 'file',
|
||||
flags: [],
|
||||
headers: {
|
||||
Origin: 'https://cloud.mail.ru',
|
||||
Referer: 'https://cloud.mail.ru/',
|
||||
},
|
||||
},
|
||||
],
|
||||
};
|
||||
|
Reference in New Issue
Block a user