This commit is contained in:
himanshu8443
2025-06-17 21:32:50 +05:30
parent 1b23125dfd
commit a2afb200ad
264 changed files with 0 additions and 16201 deletions

View File

@@ -1,36 +0,0 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getStream = void 0;
const getStream = async ({ link, signal, providerContext, }) => {
try {
let newLink = link;
if (link.includes("luxedrive")) {
const res = await providerContext.axios.get(link);
const $ = providerContext.cheerio.load(res.data);
const hubcloudLink = $("a.btn.hubcloud").attr("href");
if (hubcloudLink) {
newLink = hubcloudLink;
}
else {
const gdFlixLink = $("a.btn.gdflix").attr("href");
if (gdFlixLink) {
newLink = gdFlixLink;
}
}
}
if (newLink.includes("gdflix")) {
const sreams = await providerContext.extractors.gdFlixExtracter(newLink, signal);
return sreams;
}
const res2 = await providerContext.axios.get(newLink, { signal });
const data2 = res2.data;
const hcLink = data2.match(/location\.replace\('([^']+)'/)?.[1] || newLink;
const hubCloudLinks = await providerContext.extractors.hubcloudExtracter(hcLink.includes("https://hubcloud") ? hcLink : newLink, signal);
return hubCloudLinks;
}
catch (err) {
console.error(err);
return [];
}
};
exports.getStream = getStream;