webstreamr-github/src/types.ts
WebStreamr 23445c143b
feat(extractor): add external URL support
This could still be a useful fallback on some devices since it indicates
that we found a potential embed URL but could not extract the video URL.
2025-05-21 19:22:32 +00:00

22 lines
466 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 UrlResult {
url: URL;
isExternal?: boolean;
label: string;
sourceId: string;
height: number;
bytes: number;
countryCode?: string;
requestHeaders?: Record<string, string>;
}