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

1 line
4.7 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,n)=>t in e?__defProp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,__spreadValues=(e,t)=>{for(var n in t||(t={}))__hasOwnProp.call(t,n)&&__defNormalProp(e,n,t[n]);if(__getOwnPropSymbols)for(var n of __getOwnPropSymbols(t))__propIsEnum.call(t,n)&&__defNormalProp(e,n,t[n]);return e},__spreadProps=(e,t)=>__defProps(e,__getOwnPropDescs(t)),__name=(e,t)=>__defProp(e,"name",{value:t,configurable:!0}),__export=(e,t)=>{for(var n in t)__defProp(e,n,{get:t[n],enumerable:!0})},__copyProps=(e,t,n,o)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let l of __getOwnPropNames(t))__hasOwnProp.call(e,l)||l===n||__defProp(e,l,{get:()=>t[l],enumerable:!(o=__getOwnPropDesc(t,l))||o.enumerable});return e},__toCommonJS=e=>__copyProps(__defProp({},"__esModule",{value:!0}),e),__async=(e,t,n)=>new Promise((o,l)=>{var r=e=>{try{a(n.next(e))}catch(e){l(e)}},i=e=>{try{a(n.throw(e))}catch(e){l(e)}},a=e=>e.done?o(e.value):Promise.resolve(e.value).then(r,i);a((n=n.apply(e,t)).next())}),meta_exports={};__export(meta_exports,{getMeta:()=>getMeta});var headers={Accept:"text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7","Cache-Control":"no-store","Accept-Language":"en-US,en;q=0.9",DNT:"1","sec-ch-ua":'"Not_A Brand";v="8", "Chromium";v="120", "Microsoft Edge";v="120"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"Sec-Fetch-Dest":"document","Sec-Fetch-Mode":"navigate","Sec-Fetch-Site":"none","Sec-Fetch-User":"?1",Cookie:"xla=s4t; _ga=GA1.1.1081149560.1756378968; _ga_BLZGKYN5PF=GS2.1.s1756378968$o1$g1$t1756378984$j44$l0$h0","Upgrade-Insecure-Requests":"1","User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 Edg/131.0.0.0"},getMeta=__name(e=>__async(null,[e],function*({link:e,providerContext:t}){var n,o,l,r,i,a,d,s,p,u,c,_,v,g,f,m,h,b,y;try{const{axios:P,cheerio:x}=t,w=e,O=w.split("/").slice(0,3).join("/"),S=yield P.get(w,{headers:__spreadProps(__spreadValues({},headers),{Referer:O})}),k=x.load(S.data),M=k(".entry-content,.post-inner"),N=null==M?void 0:M.find("h3"),j=(null==(a=null==(i=null==(r=null==(l=null==(o=null==(n=null==N?void 0:N.next("p"))?void 0:n.find("a"))?void 0:o[0])?void 0:l.attribs)?void 0:r.href)?void 0:i.match(/tt\d+/g))?void 0:a[0])||(null==(d=M.text().match(/tt\d+/g))?void 0:d[0])||"",C=(null==(p=null==(s=null==N?void 0:N.next("p"))?void 0:s.text())?void 0:p.includes("Series Name"))?"series":"movie",L=/Name: (.+)/,D=(null==(_=null==(c=null==(u=null==N?void 0:N.next("p"))?void 0:u.text())?void 0:c.match(L))?void 0:_[1])||"",q=null==(h=null==(m=null==(f=null==(g=null==(v=null==M?void 0:M.find("p"))?void 0:v.next("h3,h4"))?void 0:g.next("p"))?void 0:f[0])?void 0:m.children)?void 0:h[0],A=q&&"data"in q?q.data:"";let I=(null==(b=null==M?void 0:M.find("img[data-lazy-src]"))?void 0:b.attr("data-lazy-src"))||"";I.startsWith("//")&&(I="https:"+I);const $=null==(y=null==M?void 0:M.first())?void 0:y.find("hr"),E=null==$?void 0:$.nextUntil("hr"),F=[];return E.each((e,t)=>{var n,o,l,r,i,a,d,s,p;const u=(null==(t=k(t))?void 0:t.text())||"",c=(null==(n=null==t?void 0:t.text().match(/\d+p\b/))?void 0:n[0])||"",_=(null==t?void 0:t.next().find(".dwd-button").text().toLowerCase().includes("download"))?null==(l=null==(o=null==t?void 0:t.next().find(".dwd-button"))?void 0:o.parent())?void 0:l.attr("href"):"",v=(null==(i=null==(r=null==t?void 0:t.next().find(".btn-outline[style='background:linear-gradient(135deg,#ed0b0b,#f2d152); color: white;'],.btn-outline[style='background:linear-gradient(135deg,#ed0b0b,#f2d152); color: #fdf8f2;'],.btn-outline[style='background:linear-gradient(135deg,#ed0b0b,#f2d152);color: white']"))?void 0:r.parent())?void 0:i.attr("href"))||((null==t?void 0:t.next().find(".dwd-button").text().toLowerCase().includes("episode"))?null==(d=null==(a=null==t?void 0:t.next().find(".dwd-button"))?void 0:a.parent())?void 0:d.attr("href"):"")||(null==(p=null==(s=null==t?void 0:t.next().find(".btn-outline[style='background:linear-gradient(135deg,#0ebac3,#09d261); color: white;']"))?void 0:s.parent())?void 0:p.attr("href"));(_||v)&&F.push({title:u,directLinks:_?[{title:"Movie",link:_,type:"movie"}]:[],episodesLink:v,quality:c})}),{title:D,synopsis:A,image:I,imdbId:j,type:C,linkList:F}}catch(e){return{title:"",synopsis:"",image:"",imdbId:"",type:"",linkList:[]}}}),"getMeta");exports.getMeta=getMeta;