mirror of
https://github.com/sussy-code/smov.git
synced 2025-01-08 17:27:40 +01:00
25 lines
435 B
TypeScript
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>;
|
|
};
|