This commit is contained in:
himanshu8443
2025-06-18 20:22:41 +05:30
parent 53955d1cb0
commit 91be4f5f45
2 changed files with 20 additions and 20 deletions

View File

@@ -15,8 +15,9 @@ const getMeta = function (_a) {
var _b, _c, _d, _e, _f;
try {
const { axios, cheerio, getBaseUrl } = providerContext;
const baseUrl = yield getBaseUrl("protonMovies");
console.log("all", link);
const res = yield axios.get(link);
const res = yield axios.get(`${baseUrl}${link}`);
const data = res.data;
function decodeHtml(encodedArray) {
// Join array elements into a single string
@@ -54,7 +55,6 @@ const getMeta = function (_a) {
.map((i, el) => $(el).text())
.slice(0, 3)
.get();
const baseUrl = yield getBaseUrl("protonMovies");
const links = [];
if (type === "movie") {
const directLinks = [];