Disabled warezcdn enbeds

This commit is contained in:
TPN 2024-08-05 12:01:26 +00:00
parent 9b9fbc625f
commit 0c7f65edb6
3 changed files with 5 additions and 1 deletions

View file

@ -38,6 +38,7 @@ export async function getDecryptedId(ctx: EmbedScrapeContext) {
const allowanceKey = page.match(/let allowanceKey = "(.*?)";/)?.[1];
if (!allowanceKey) throw new NotFoundError('Failed to get allowanceKey');
// this endpoint is removed hence the method no longer works
const streamData = await ctx.proxiedFetcher<string>('/functions.php', {
baseUrl: warezcdnPlayerBase,
method: 'POST',

View file

@ -21,6 +21,8 @@ async function getVideowlUrlStream(ctx: EmbedScrapeContext, decryptedId: string)
export const warezcdnembedHlsScraper = makeEmbed({
id: 'warezcdnembedhls', // WarezCDN is both a source and an embed host
name: 'WarezCDN HLS',
// method no longer works
disabled: true,
rank: 83,
async scrape(ctx) {
const decryptedId = await getDecryptedId(ctx);

View file

@ -25,8 +25,9 @@ async function checkUrls(ctx: EmbedScrapeContext, fileId: string) {
export const warezcdnembedMp4Scraper = makeEmbed({
id: 'warezcdnembedmp4', // WarezCDN is both a source and an embed host
name: 'WarezCDN MP4',
// method no longer works
rank: 82,
disabled: false,
disabled: true,
async scrape(ctx) {
const decryptedId = await getDecryptedId(ctx);