mirror of
https://github.com/movie-web/providers.git
synced 2025-09-13 12:43: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 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 {
|
||||||
|
@@ -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> = {
|
||||||
|
@@ -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 = {
|
||||||
|
@@ -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,
|
||||||
|
@@ -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;
|
||||||
|
Reference in New Issue
Block a user