1
0
Fork 0
mirror of https://github.com/sussy-code/smov.git synced 2025-01-07 17:17:40 +01:00
smov/src/backend/helpers/embed.ts
2023-06-16 14:41:30 +05:30

29 lines
534 B
TypeScript

import { MWEmbedStream } from "./streams";
export enum MWEmbedType {
M4UFREE = "m4ufree",
STREAMM4U = "streamm4u",
PLAYM4U = "playm4u",
UPCLOUD = "upcloud",
STREAMSB = "streamsb",
}
export type MWEmbed = {
type: MWEmbedType;
url: string;
};
export type MWEmbedContext = {
progress(percentage: number): void;
url: string;
};
export type MWEmbedScraper = {
id: string;
displayName: string;
for: MWEmbedType;
rank: number;
disabled?: boolean;
getStream(ctx: MWEmbedContext): Promise<MWEmbedStream>;
};