minify again

This commit is contained in:
himanshu8443
2025-07-13 11:25:52 +05:30
parent 4d450e5be5
commit bd060abce3
139 changed files with 139 additions and 10578 deletions

View File

@@ -1,66 +1 @@
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.getMeta = void 0;
const getMeta = function (_a) {
return __awaiter(this, arguments, void 0, function* ({ link, }) {
var _b, _c, _d, _e;
let providerValue = "netflixMirror";
try {
const isPrime = providerValue === "primeMirror" ? "isPrime=true" : "isPrime=false";
const url = `https://netmirror.zendax.tech/api/net-proxy?${isPrime}&url=${encodeURIComponent(link)}`;
console.log("nfifo", url);
const res = yield fetch(url, {
credentials: "omit",
});
const data = yield res.json();
const id = (_b = link.split("id=")[1]) === null || _b === void 0 ? void 0 : _b.split("&")[0];
const meta = {
title: data.title,
synopsis: data.desc,
image: `https://img.nfmirrorcdn.top/poster/h/${id}.jpg`,
cast: (_c = data === null || data === void 0 ? void 0 : data.short_cast) === null || _c === void 0 ? void 0 : _c.split(","),
tags: [data === null || data === void 0 ? void 0 : data.year, data === null || data === void 0 ? void 0 : data.hdsd, ...(_d = data === null || data === void 0 ? void 0 : data.thismovieis) === null || _d === void 0 ? void 0 : _d.split(",")],
imdbId: "",
type: "series",
};
console.log("nfinfo", meta);
const linkList = [];
if (((_e = data === null || data === void 0 ? void 0 : data.season) === null || _e === void 0 ? void 0 : _e.length) > 0) {
data.season.map((season) => {
linkList.push({
title: "Season " + (season === null || season === void 0 ? void 0 : season.s),
episodesLink: season === null || season === void 0 ? void 0 : season.id,
});
});
}
else {
linkList.push({
title: meta.title,
directLinks: [{ link: id, title: "Movie", type: "movie" }],
});
}
return Object.assign(Object.assign({}, meta), { linkList: linkList });
}
catch (err) {
console.error(err);
return {
title: "",
synopsis: "",
image: "",
imdbId: "",
type: "",
linkList: [],
};
}
});
};
exports.getMeta = getMeta;
"use strict";var __awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value))}catch(e){reject(e)}}function rejected(value){try{step(generator.throw(value))}catch(e){reject(e)}}function step(result){var value;result.done?resolve(result.value):(value=result.value,value instanceof P?value:new P(function(resolve){resolve(value)})).then(fulfilled,rejected)}step((generator=generator.apply(thisArg,_arguments||[])).next())})};Object.defineProperty(exports,"__esModule",{value:!0}),exports.getMeta=void 0;const getMeta=function(_a){return __awaiter(this,arguments,void 0,function*({link:link}){var _b,_c,_d,_e;try{const url=`https://netmirror.zendax.tech/api/net-proxy?${"isPrime=false"}&url=${encodeURIComponent(link)}`,res=yield fetch(url,{credentials:"omit"}),data=yield res.json(),id=null===(_b=link.split("id=")[1])||void 0===_b?void 0:_b.split("&")[0],meta={title:data.title,synopsis:data.desc,image:`https://img.nfmirrorcdn.top/poster/h/${id}.jpg`,cast:null===(_c=null==data?void 0:data.short_cast)||void 0===_c?void 0:_c.split(","),tags:[null==data?void 0:data.year,null==data?void 0:data.hdsd,...null===(_d=null==data?void 0:data.thismovieis)||void 0===_d?void 0:_d.split(",")],imdbId:"",type:"series"},linkList=[];return(null===(_e=null==data?void 0:data.season)||void 0===_e?void 0:_e.length)>0?data.season.map(season=>{linkList.push({title:"Season "+(null==season?void 0:season.s),episodesLink:null==season?void 0:season.id})}):linkList.push({title:meta.title,directLinks:[{link:id,title:"Movie",type:"movie"}]}),Object.assign(Object.assign({},meta),{linkList:linkList})}catch(err){return{title:"",synopsis:"",image:"",imdbId:"",type:"",linkList:[]}}})};exports.getMeta=getMeta;