Files
vega-providers/dist/flixhq/meta.js
Himanshu a179a130d6 build
2026-02-03 21:48:37 +05:30

1 line
2.2 KiB
JavaScript

"use strict";var __defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropDescs=Object.getOwnPropertyDescriptors,__getOwnPropNames=Object.getOwnPropertyNames,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(e,t,r)=>t in e?__defProp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,__spreadValues=(e,t)=>{for(var r in t||(t={}))__hasOwnProp.call(t,r)&&__defNormalProp(e,r,t[r]);if(__getOwnPropSymbols)for(var r of __getOwnPropSymbols(t))__propIsEnum.call(t,r)&&__defNormalProp(e,r,t[r]);return e},__spreadProps=(e,t)=>__defProps(e,__getOwnPropDescs(t)),__name=(e,t)=>__defProp(e,"name",{value:t,configurable:!0}),__export=(e,t)=>{for(var r in t)__defProp(e,r,{get:t[r],enumerable:!0})},__copyProps=(e,t,r,o)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of __getOwnPropNames(t))__hasOwnProp.call(e,s)||s===r||__defProp(e,s,{get:()=>t[s],enumerable:!(o=__getOwnPropDesc(t,s))||o.enumerable});return e},__toCommonJS=e=>__copyProps(__defProp({},"__esModule",{value:!0}),e),__async=(e,t,r)=>new Promise((o,s)=>{var _=e=>{try{p(r.next(e))}catch(e){s(e)}},n=e=>{try{p(r.throw(e))}catch(e){s(e)}},p=e=>e.done?o(e.value):Promise.resolve(e.value).then(_,n);p((r=r.apply(e,t)).next())}),meta_exports={};__export(meta_exports,{getMeta:()=>getMeta});var getMeta=__name(function(e){return __async(this,arguments,function*({link:e,providerContext:t}){try{const{axios:r,getBaseUrl:o}=t,s=`${yield o("consumet")}/movies/flixhq/info?id=`+e,_=(yield r.get(s)).data,n={title:_.title,synopsis:_.description.replace(/<[^>]*>?/gm,"").trim(),image:_.cover,cast:_.casts,rating:_.rating,tags:[null==_?void 0:_.type,null==_?void 0:_.duration,_.releaseDate.split("-")[0]],imdbId:"",type:_.episodes.length>1?"series":"movie"},p=[];return _.episodes.forEach(e=>{const t=(null==e?void 0:e.number)?"Season-"+(null==e?void 0:e.season)+" Ep-"+e.number:e.title,r=e.id+"*"+_.id;r&&t&&p.push({title:t,link:r})}),__spreadProps(__spreadValues({},n),{linkList:[{title:n.title,directLinks:p}]})}catch(e){return{title:"",synopsis:"",image:"",imdbId:"",type:"movie",linkList:[]}}})},"getMeta");exports.getMeta=getMeta;