remove references of embed headers

This commit is contained in:
Jorrin
2023-12-27 00:21:13 +01:00
parent 2117b417f4
commit 06acec4675
5 changed files with 1 additions and 8 deletions

View File

@@ -52,9 +52,6 @@ export interface EmbedRunnerOptions {
// id of the embed scraper you want to scrape from // id of the embed scraper you want to scrape from
id: string; id: string;
// optional headers for the embed scraper to use
headers?: Record<string, string>;
} }
export interface ProviderControls { export interface ProviderControls {

View File

@@ -16,8 +16,8 @@ export type DefaultedFetcherOptions = {
body?: Record<string, any> | string | FormData; body?: Record<string, any> | string | FormData;
headers: Record<string, string>; headers: Record<string, string>;
query: Record<string, string>; query: Record<string, string>;
method: 'HEAD' | 'GET' | 'POST';
readHeaders: string[]; readHeaders: string[];
method: 'HEAD' | 'GET' | 'POST';
}; };
export type FetcherResponse<T = any> = { export type FetcherResponse<T = any> = {

View File

@@ -7,7 +7,6 @@ export type MediaScraperTypes = 'show' | 'movie';
export type SourcererEmbed = { export type SourcererEmbed = {
embedId: string; embedId: string;
url: string; url: string;
headers?: Record<string, string>;
}; };
export type SourcererOutput = { export type SourcererOutput = {

View File

@@ -70,7 +70,6 @@ export type IndividualEmbedRunnerOptions = {
url: string; url: string;
id: string; id: string;
events?: IndividualScraperEvents; events?: IndividualScraperEvents;
headers?: Record<string, string>;
}; };
export async function scrapeIndividualEmbed( export async function scrapeIndividualEmbed(
@@ -84,7 +83,6 @@ export async function scrapeIndividualEmbed(
fetcher: ops.fetcher, fetcher: ops.fetcher,
proxiedFetcher: ops.proxiedFetcher, proxiedFetcher: ops.proxiedFetcher,
url: ops.url, url: ops.url,
headers: ops.headers,
progress(val) { progress(val) {
ops.events?.update?.({ ops.events?.update?.({
id: embedScraper.id, id: embedScraper.id,

View File

@@ -15,7 +15,6 @@ export type ScrapeContext = {
export type EmbedInput = { export type EmbedInput = {
url: string; url: string;
headers?: Record<string, string>;
}; };
export type EmbedScrapeContext = EmbedInput & ScrapeContext; export type EmbedScrapeContext = EmbedInput & ScrapeContext;