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

28 lines
476 B
TypeScript
Raw Normal View History

2023-01-11 21:16:48 +01:00
import { MWStream } from "./streams";
export enum MWEmbedType {
M4UFREE = "m4ufree",
STREAMM4U = "streamm4u",
PLAYM4U = "playm4u",
2023-01-11 21:16:48 +01:00
}
export type MWEmbed = {
type: MWEmbedType;
2023-01-11 21:16:48 +01:00
url: string;
};
export type MWEmbedContext = {
progress(percentage: number): void;
url: string;
};
export type MWEmbedScraper = {
id: string;
2023-01-15 16:01:07 +01:00
displayName: string;
2023-01-11 21:16:48 +01:00
for: MWEmbedType;
rank: number;
disabled?: boolean;
getStream(ctx: MWEmbedContext): Promise<MWStream>;
};