1
0
Fork 0
mirror of https://github.com/sussy-code/smov.git synced 2025-01-08 17:27:40 +01:00
smov/src/backend/helpers/embed.ts
2023-01-12 22:04:28 +01:00

25 lines
435 B
TypeScript

import { MWStream } from "./streams";
export enum MWEmbedType {
OPENLOAD = "openload",
ANOTHER = "another",
}
export type MWEmbed = {
type: MWEmbedType | null;
url: string;
};
export type MWEmbedContext = {
progress(percentage: number): void;
url: string;
};
export type MWEmbedScraper = {
id: string;
for: MWEmbedType;
rank: number;
disabled?: boolean;
getStream(ctx: MWEmbedContext): Promise<MWStream>;
};