feat: add a111477 provider

This commit is contained in:
himanshu8443
2025-08-15 15:57:36 +05:30
parent e3e66627cc
commit f0c98f9d0a
11 changed files with 376 additions and 1 deletions

View File

@@ -0,0 +1,38 @@
import { Stream, ProviderContext } from "../types";
export const getStream = async function ({
link: url,
}: {
link: string;
type: string;
providerContext: ProviderContext;
}): Promise<Stream[]> {
try {
const stream: Stream[] = [];
// Get file extension from URL
const fileExtension = url.split(".").pop()?.toLowerCase() || "mp4";
// Determine stream type based on file extension
let streamType = "mp4";
if (["mkv", "avi", "mov", "webm"].includes(fileExtension)) {
streamType = fileExtension;
}
stream.push({
server: "111477.xyz",
link: url,
type: streamType,
headers: {
"User-Agent":
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36",
Referer: "https://a.111477.xyz/",
},
});
return stream;
} catch (err) {
console.error("111477 stream error:", err);
return [];
}
};