mirror of
https://github.com/movie-web/providers.git
synced 2025-09-13 10:33:25 +00:00
remove references of embed headers
This commit is contained in:
@@ -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<string, string>;
|
||||
}
|
||||
|
||||
export interface ProviderControls {
|
||||
|
@@ -16,8 +16,8 @@ export type DefaultedFetcherOptions = {
|
||||
body?: Record<string, any> | string | FormData;
|
||||
headers: Record<string, string>;
|
||||
query: Record<string, string>;
|
||||
method: 'HEAD' | 'GET' | 'POST';
|
||||
readHeaders: string[];
|
||||
method: 'HEAD' | 'GET' | 'POST';
|
||||
};
|
||||
|
||||
export type FetcherResponse<T = any> = {
|
||||
|
@@ -7,7 +7,6 @@ export type MediaScraperTypes = 'show' | 'movie';
|
||||
export type SourcererEmbed = {
|
||||
embedId: string;
|
||||
url: string;
|
||||
headers?: Record<string, string>;
|
||||
};
|
||||
|
||||
export type SourcererOutput = {
|
||||
|
@@ -70,7 +70,6 @@ export type IndividualEmbedRunnerOptions = {
|
||||
url: string;
|
||||
id: string;
|
||||
events?: IndividualScraperEvents;
|
||||
headers?: Record<string, string>;
|
||||
};
|
||||
|
||||
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,
|
||||
|
@@ -15,7 +15,6 @@ export type ScrapeContext = {
|
||||
|
||||
export type EmbedInput = {
|
||||
url: string;
|
||||
headers?: Record<string, string>;
|
||||
};
|
||||
|
||||
export type EmbedScrapeContext = EmbedInput & ScrapeContext;
|
||||
|
Reference in New Issue
Block a user