mirror of
https://github.com/movie-web/providers.git
synced 2025-09-13 11:33:25 +00:00
use worker proxy
This commit is contained in:
@@ -53,3 +53,5 @@ export async function getDecryptedId(ctx: EmbedScrapeContext) {
|
|||||||
|
|
||||||
return decryptedId;
|
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 { EmbedScrapeContext } from '@/utils/context';
|
||||||
import { NotFoundError } from '@/utils/errors';
|
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];
|
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
|
id: 'warezcdnembedmp4', // WarezCDN is both a source and an embed host
|
||||||
name: 'WarezCDN MP4',
|
name: 'WarezCDN MP4',
|
||||||
rank: 83,
|
rank: 83,
|
||||||
disabled: true, // crashes movie-web player, disabling for now
|
disabled: false,
|
||||||
async scrape(ctx) {
|
async scrape(ctx) {
|
||||||
const decryptedId = await getDecryptedId(ctx);
|
const decryptedId = await getDecryptedId(ctx);
|
||||||
|
|
||||||
@@ -42,15 +42,13 @@ export const warezcdnembedMp4Scraper = makeEmbed({
|
|||||||
qualities: {
|
qualities: {
|
||||||
unknown: {
|
unknown: {
|
||||||
type: 'mp4',
|
type: 'mp4',
|
||||||
url: streamUrl,
|
url: `${warezcdnWorkerProxy}/?${new URLSearchParams({
|
||||||
|
url: streamUrl,
|
||||||
|
})}`,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
type: 'file',
|
type: 'file',
|
||||||
flags: [],
|
flags: [],
|
||||||
headers: {
|
|
||||||
Origin: 'https://cloud.mail.ru',
|
|
||||||
Referer: 'https://cloud.mail.ru/',
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user