feat: add moviebox

This commit is contained in:
himanshu8443
2025-07-16 16:44:04 +05:30
parent bd060abce3
commit e49bd6a171
11 changed files with 260 additions and 1 deletions

View File

@@ -0,0 +1,27 @@
import { Stream, ProviderContext, EpisodeLink } from "../types";
export const getStream = async function ({
link: url,
type,
providerContext,
}: {
link: string;
type: string;
providerContext: ProviderContext;
}): Promise<Stream[]> {
const { axios, cheerio } = providerContext;
try {
const stream: Stream[] = [];
const data = JSON.parse(url);
stream.push({
link: data.url,
server: data.title || "Unknown Server",
type: "mp4",
});
console.log("stream", stream);
return stream;
} catch (err) {
console.log("getStream error", err);
return [];
}
};