webstreamr/src/types.ts
WebStreamr 979dddd20c
refactor: move bytes, height and countryCode into meta object
and pass that to the extractors instead. this is a preparation to
support more meta like e.g. title
2025-05-25 19:25:39 +02:00

26 lines
508 B
TypeScript

import { Manifest, ManifestConfig } from 'stremio-addon-sdk';
export interface Context {
id: string;
ip: string;
config: Config;
}
export type ManifestWithConfig = Manifest & { config: ManifestConfig[] };
export type Config = Record<string, string>;
export interface Meta {
bytes?: number;
countryCode: string;
height?: number;
}
export interface UrlResult {
url: URL;
isExternal?: boolean;
label: string;
sourceId: string;
meta: Meta;
requestHeaders?: Record<string, string>;
}