Add MoviezWap provider and update manifest (#1)

Co-authored-by: shaker <your_github_username@users.noreply.github.com>
Co-authored-by: himanshu8443 <sangwanhimanshu8443@gmail.com>
This commit is contained in:
Shaker
2025-06-30 12:04:26 +05:30
committed by GitHub
parent 6b0a4b7484
commit 305e3d2552
6 changed files with 281 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
import { ProviderContext, Stream } from "../types";
export async function getStream({
link,
signal,
providerContext,
}: {
link: string;
type: string;
signal: AbortSignal;
providerContext: ProviderContext;
}) {
const { axios, cheerio, commonHeaders: headers } = providerContext;
const res = await axios.get(link, { headers, signal });
const html = res.data;
const $ = cheerio.load(html);
const Streams: Stream[] = [];
// Find the actual .mp4 download link
let downloadLink = null;
$('a:contains("Fast Download Server")').each((i, el) => {
const href = $(el).attr("href");
if (href && href.toLocaleLowerCase().includes(".mp4")) {
Streams.push({
link: href,
type: "mp4",
server: "Fast Download",
headers: headers,
});
}
});
return Streams;
}