Add CF_BLOCKED flags

This commit is contained in:
mrjvs
2024-01-11 19:14:21 +01:00
parent 7697c76721
commit 7a5cbb3428
2 changed files with 5 additions and 1 deletions

View File

@@ -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];

View File

@@ -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,
});