diff --git a/src/entrypoint/controls.ts b/src/entrypoint/controls.ts index 2ac7898..5ff400b 100644 --- a/src/entrypoint/controls.ts +++ b/src/entrypoint/controls.ts @@ -52,9 +52,6 @@ export interface EmbedRunnerOptions { // id of the embed scraper you want to scrape from id: string; - - // optional headers for the embed scraper to use - headers?: Record; } export interface ProviderControls { diff --git a/src/fetchers/types.ts b/src/fetchers/types.ts index 8904173..d542298 100644 --- a/src/fetchers/types.ts +++ b/src/fetchers/types.ts @@ -16,8 +16,8 @@ export type DefaultedFetcherOptions = { body?: Record | string | FormData; headers: Record; query: Record; - method: 'HEAD' | 'GET' | 'POST'; readHeaders: string[]; + method: 'HEAD' | 'GET' | 'POST'; }; export type FetcherResponse = { diff --git a/src/providers/base.ts b/src/providers/base.ts index 1625b50..0d43895 100644 --- a/src/providers/base.ts +++ b/src/providers/base.ts @@ -7,7 +7,6 @@ export type MediaScraperTypes = 'show' | 'movie'; export type SourcererEmbed = { embedId: string; url: string; - headers?: Record; }; export type SourcererOutput = { diff --git a/src/runners/individualRunner.ts b/src/runners/individualRunner.ts index 43730c7..2befd84 100644 --- a/src/runners/individualRunner.ts +++ b/src/runners/individualRunner.ts @@ -70,7 +70,6 @@ export type IndividualEmbedRunnerOptions = { url: string; id: string; events?: IndividualScraperEvents; - headers?: Record; }; export async function scrapeIndividualEmbed( @@ -84,7 +83,6 @@ export async function scrapeIndividualEmbed( fetcher: ops.fetcher, proxiedFetcher: ops.proxiedFetcher, url: ops.url, - headers: ops.headers, progress(val) { ops.events?.update?.({ id: embedScraper.id, diff --git a/src/utils/context.ts b/src/utils/context.ts index f7c005e..cf7acc7 100644 --- a/src/utils/context.ts +++ b/src/utils/context.ts @@ -15,7 +15,6 @@ export type ScrapeContext = { export type EmbedInput = { url: string; - headers?: Record; }; export type EmbedScrapeContext = EmbedInput & ScrapeContext;