From 7a5cbb3428f325ac86dfdc270b56f0c018110de9 Mon Sep 17 00:00:00 2001 From: mrjvs Date: Thu, 11 Jan 2024 19:14:21 +0100 Subject: [PATCH] Add CF_BLOCKED flags --- src/entrypoint/utils/targets.ts | 4 ++++ src/providers/sources/showbox/index.ts | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/entrypoint/utils/targets.ts b/src/entrypoint/utils/targets.ts index 16a02da..80988a4 100644 --- a/src/entrypoint/utils/targets.ts +++ b/src/entrypoint/utils/targets.ts @@ -5,6 +5,10 @@ export const flags = { // the stream is locked on IP, so only works if // request maker is same as player (not compatible with proxies) IP_LOCKED: 'ip-locked', + + // The source/embed is blocking cloudflare ip's + // This flag is not compatible with a proxy hosted on cloudflare + CF_BLOCKED: 'cf-blocked', } as const; export type Flags = (typeof flags)[keyof typeof flags]; diff --git a/src/providers/sources/showbox/index.ts b/src/providers/sources/showbox/index.ts index d6c4887..c8a834a 100644 --- a/src/providers/sources/showbox/index.ts +++ b/src/providers/sources/showbox/index.ts @@ -42,7 +42,7 @@ export const showboxScraper = makeSourcerer({ id: 'showbox', name: 'Showbox', rank: 300, - flags: [flags.CORS_ALLOWED], + flags: [flags.CORS_ALLOWED, flags.CF_BLOCKED], scrapeShow: comboScraper, scrapeMovie: comboScraper, });