Skip to content

Commit

Permalink
Disabled warezcdn enbeds
Browse files Browse the repository at this point in the history
  • Loading branch information
ztpn committed Aug 5, 2024
1 parent 9b9fbc6 commit 0c7f65e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/providers/embeds/warezcdn/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 2 additions & 0 deletions src/providers/embeds/warezcdn/hls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
3 changes: 2 additions & 1 deletion src/providers/embeds/warezcdn/mp4.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 0c7f65e

Please sign in to comment.