mirror of
https://github.com/vega-org/vega-providers.git
synced 2026-04-17 15:41:45 +00:00
minify
This commit is contained in:
104
dist/luxMovies/catalog.js
vendored
104
dist/luxMovies/catalog.js
vendored
@@ -1,103 +1 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.genres = exports.catalog = void 0;
|
||||
exports.catalog = [
|
||||
{
|
||||
title: "New",
|
||||
filter: "",
|
||||
},
|
||||
{
|
||||
title: "Netflix",
|
||||
filter: "category/web-series/netflix",
|
||||
},
|
||||
{
|
||||
title: "Amazon Prime",
|
||||
filter: "category/web-series/amazon-prime-video",
|
||||
},
|
||||
{
|
||||
title: "4K Movies",
|
||||
filter: "category/movies-by-quality/2160p",
|
||||
},
|
||||
];
|
||||
exports.genres = [
|
||||
{
|
||||
title: "Action",
|
||||
filter: "category/movies-by-genres/action/",
|
||||
},
|
||||
{
|
||||
title: "Adventure",
|
||||
filter: "category/movies-by-genres/adventure/",
|
||||
},
|
||||
{
|
||||
title: "Animation",
|
||||
filter: "category/movies-by-genres/animation/",
|
||||
},
|
||||
{
|
||||
title: "Biography",
|
||||
filter: "category/movies-by-genres/biography/",
|
||||
},
|
||||
{
|
||||
title: "Comedy",
|
||||
filter: "category/movies-by-genres/comedy/",
|
||||
},
|
||||
{
|
||||
title: "Crime",
|
||||
filter: "category/movies-by-genres/crime/",
|
||||
},
|
||||
{
|
||||
title: "Documentary",
|
||||
filter: "category/movies-by-genres/documentary/",
|
||||
},
|
||||
{
|
||||
title: "Drama",
|
||||
filter: "category/movies-by-genres/drama/",
|
||||
},
|
||||
{
|
||||
title: "Family",
|
||||
filter: "category/movies-by-genres/family/",
|
||||
},
|
||||
{
|
||||
title: "Fantasy",
|
||||
filter: "category/movies-by-genres/fantasy/",
|
||||
},
|
||||
{
|
||||
title: "History",
|
||||
filter: "category/movies-by-genres/history/",
|
||||
},
|
||||
{
|
||||
title: "Horror",
|
||||
filter: "category/movies-by-genres/horror/",
|
||||
},
|
||||
{
|
||||
title: "Music",
|
||||
filter: "category/movies-by-genres/music/",
|
||||
},
|
||||
{
|
||||
title: "Mystery",
|
||||
filter: "category/movies-by-genres/mystery/",
|
||||
},
|
||||
{
|
||||
title: "Romance",
|
||||
filter: "category/movies-by-genres/romance/",
|
||||
},
|
||||
{
|
||||
title: "Sci-Fi",
|
||||
filter: "category/movies-by-genres/sci-fi/",
|
||||
},
|
||||
{
|
||||
title: "Sport",
|
||||
filter: "category/movies-by-genres/sport/",
|
||||
},
|
||||
{
|
||||
title: "Thriller",
|
||||
filter: "category/movies-by-genres/thriller/",
|
||||
},
|
||||
{
|
||||
title: "War",
|
||||
filter: "category/movies-by-genres/war/",
|
||||
},
|
||||
{
|
||||
title: "Western",
|
||||
filter: "category/movies-by-genres/western/",
|
||||
},
|
||||
];
|
||||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.genres=exports.catalog=void 0,exports.catalog=[{title:"New",filter:""},{title:"Netflix",filter:"category/web-series/netflix"},{title:"Amazon Prime",filter:"category/web-series/amazon-prime-video"},{title:"4K Movies",filter:"category/movies-by-quality/2160p"}],exports.genres=[{title:"Action",filter:"category/movies-by-genres/action/"},{title:"Adventure",filter:"category/movies-by-genres/adventure/"},{title:"Animation",filter:"category/movies-by-genres/animation/"},{title:"Biography",filter:"category/movies-by-genres/biography/"},{title:"Comedy",filter:"category/movies-by-genres/comedy/"},{title:"Crime",filter:"category/movies-by-genres/crime/"},{title:"Documentary",filter:"category/movies-by-genres/documentary/"},{title:"Drama",filter:"category/movies-by-genres/drama/"},{title:"Family",filter:"category/movies-by-genres/family/"},{title:"Fantasy",filter:"category/movies-by-genres/fantasy/"},{title:"History",filter:"category/movies-by-genres/history/"},{title:"Horror",filter:"category/movies-by-genres/horror/"},{title:"Music",filter:"category/movies-by-genres/music/"},{title:"Mystery",filter:"category/movies-by-genres/mystery/"},{title:"Romance",filter:"category/movies-by-genres/romance/"},{title:"Sci-Fi",filter:"category/movies-by-genres/sci-fi/"},{title:"Sport",filter:"category/movies-by-genres/sport/"},{title:"Thriller",filter:"category/movies-by-genres/thriller/"},{title:"War",filter:"category/movies-by-genres/war/"},{title:"Western",filter:"category/movies-by-genres/western/"}];
|
||||
46
dist/luxMovies/episodes.js
vendored
46
dist/luxMovies/episodes.js
vendored
@@ -1,45 +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.getEpisodes = void 0;
|
||||
const getEpisodes = function (_a) {
|
||||
return __awaiter(this, arguments, void 0, function* ({ url, providerContext, }) {
|
||||
const { axios, cheerio, commonHeaders: headers } = providerContext;
|
||||
console.log("getEpisodeLinks", url);
|
||||
try {
|
||||
const res = yield axios.get(url, { headers });
|
||||
const $ = cheerio.load(res.data);
|
||||
const container = $(".entry-content,.entry-inner");
|
||||
$(".unili-content,.code-block-1").remove();
|
||||
const episodes = [];
|
||||
container.find("h4").each((index, element) => {
|
||||
const el = $(element);
|
||||
const title = el.text().replace(/-/g, "").replace(/:/g, "");
|
||||
const link = el
|
||||
.next("p")
|
||||
.find('.btn-outline[style="background:linear-gradient(135deg,#ed0b0b,#f2d152); color: white;"]')
|
||||
.parent()
|
||||
.attr("href");
|
||||
if (title && link) {
|
||||
episodes.push({ title, link });
|
||||
}
|
||||
});
|
||||
// console.log(episodes);
|
||||
return episodes;
|
||||
}
|
||||
catch (err) {
|
||||
console.log("getEpisodeLinks error: ");
|
||||
// console.error(err);
|
||||
return [];
|
||||
}
|
||||
});
|
||||
};
|
||||
exports.getEpisodes = getEpisodes;
|
||||
"use strict";var __awaiter=this&&this.__awaiter||function(e,t,n,o){return new(n||(n=Promise))(function(r,i){function c(e){try{s(o.next(e))}catch(e){i(e)}}function a(e){try{s(o.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(c,a)}s((o=o.apply(e,t||[])).next())})};Object.defineProperty(exports,"__esModule",{value:!0}),exports.getEpisodes=void 0;const getEpisodes=function(e){return __awaiter(this,arguments,void 0,function*({url:e,providerContext:t}){const{axios:n,cheerio:o,commonHeaders:r}=t;try{const t=yield n.get(e,{headers:r}),i=o.load(t.data),c=i(".entry-content,.entry-inner");i(".unili-content,.code-block-1").remove();const a=[];return c.find("h4").each((e,t)=>{const n=i(t),o=n.text().replace(/-/g,"").replace(/:/g,""),r=n.next("p").find('.btn-outline[style="background:linear-gradient(135deg,#ed0b0b,#f2d152); color: white;"]').parent().attr("href");o&&r&&a.push({title:o,link:r})}),a}catch(e){return[]}})};exports.getEpisodes=getEpisodes;
|
||||
128
dist/luxMovies/meta.js
vendored
128
dist/luxMovies/meta.js
vendored
@@ -1,127 +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 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: "_lscache_vary=62abf8b96599676eb8ec211cffaeb8ff; ext_name=ojplmecpdpgccookcobabopnaifgidhf; cf_clearance=n4Y1XTKZ5TfIMBNQuAXzerwKpx0U35KoOm3imfT0GpU-1732097818-1.2.1.1-ZeAnEu.8D9TSZHYDoj7vwo1A1rpdKl304ZpaBn_QbAQOr211JFAb7.JRQU3EL2eIy1Dfl8HhYvH7_259.22lUz8gbchHcQ8hvfuQXMtFMCbqDBLzjNUZa9stuk.39l28IcPhH9Z2szsf3SGtNI1sAfo66Djt7sOReLK3lHw9UkJp7BdGqt6a2X9qAc8EsAI3lE480Tmt0fkHv14Oc30LSbPB_WwFmiqAki2W.Gv9hV7TN_QBFESleTDlXd.6KGflfd4.KwWF7rpSRo_cgoc9ALLLIafpxHVbe7_g5r7zvpml_Pj8fEL75fw.1GBuy16bciHBuB8s_kahuJYUnhtQFFgfTQl8_Gn6KeovBWx.PJ7nFv5sklHUfAyBVq3t30xKe8ZDydsQ_G.yipfj_In5GmmWcXGb6E4.bioDOwW_sKLtxwdTQt7Nu.RkILX_mKvXNpyLqflIVj8G7X5E8I.unw",
|
||||
"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",
|
||||
};
|
||||
const getMeta = (_a) => __awaiter(void 0, [_a], void 0, function* ({ link, providerContext, }) {
|
||||
var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v;
|
||||
try {
|
||||
const { axios, cheerio } = providerContext;
|
||||
const url = link;
|
||||
console.log("url", url);
|
||||
const baseUrl = url.split("/").slice(0, 3).join("/");
|
||||
const response = yield axios.get(url, {
|
||||
headers: Object.assign(Object.assign({}, headers), { Referer: baseUrl }),
|
||||
});
|
||||
const $ = cheerio.load(response.data);
|
||||
const infoContainer = $(".entry-content,.post-inner");
|
||||
const heading = infoContainer === null || infoContainer === void 0 ? void 0 : infoContainer.find("h3");
|
||||
const imdbId =
|
||||
//@ts-ignore
|
||||
((_g = (_f = (_e = (_d = (_c = (_b = heading === null || heading === void 0 ? void 0 : heading.next("p")) === null || _b === void 0 ? void 0 : _b.find("a")) === null || _c === void 0 ? void 0 : _c[0]) === null || _d === void 0 ? void 0 : _d.attribs) === null || _e === void 0 ? void 0 : _e.href) === null || _f === void 0 ? void 0 : _f.match(/tt\d+/g)) === null || _g === void 0 ? void 0 : _g[0]) ||
|
||||
((_h = infoContainer.text().match(/tt\d+/g)) === null || _h === void 0 ? void 0 : _h[0]) ||
|
||||
"";
|
||||
// console.log(imdbId)
|
||||
const type = ((_k = (_j = heading === null || heading === void 0 ? void 0 : heading.next("p")) === null || _j === void 0 ? void 0 : _j.text()) === null || _k === void 0 ? void 0 : _k.includes("Series Name"))
|
||||
? "series"
|
||||
: "movie";
|
||||
// console.log(type);
|
||||
// title
|
||||
const titleRegex = /Name: (.+)/;
|
||||
const title = ((_o = (_m = (_l = heading === null || heading === void 0 ? void 0 : heading.next("p")) === null || _l === void 0 ? void 0 : _l.text()) === null || _m === void 0 ? void 0 : _m.match(titleRegex)) === null || _o === void 0 ? void 0 : _o[1]) || "";
|
||||
// console.log(title);
|
||||
// synopsis
|
||||
const synopsisNode = //@ts-ignore
|
||||
(_t = (_s = (_r = (_q = (_p = infoContainer === null || infoContainer === void 0 ? void 0 : infoContainer.find("p")) === null || _p === void 0 ? void 0 : _p.next("h3,h4")) === null || _q === void 0 ? void 0 : _q.next("p")) === null || _r === void 0 ? void 0 : _r[0]) === null || _s === void 0 ? void 0 : _s.children) === null || _t === void 0 ? void 0 : _t[0];
|
||||
const synopsis = synopsisNode && "data" in synopsisNode ? synopsisNode.data : "";
|
||||
// console.log(synopsis);
|
||||
// image
|
||||
let image = ((_u = infoContainer === null || infoContainer === void 0 ? void 0 : infoContainer.find("img[data-lazy-src]")) === null || _u === void 0 ? void 0 : _u.attr("data-lazy-src")) || "";
|
||||
if (image.startsWith("//")) {
|
||||
image = "https:" + image;
|
||||
}
|
||||
// console.log(image);
|
||||
// console.log({title, synopsis, image, imdbId, type});
|
||||
/// Links
|
||||
const hr = (_v = infoContainer === null || infoContainer === void 0 ? void 0 : infoContainer.first()) === null || _v === void 0 ? void 0 : _v.find("hr");
|
||||
const list = hr === null || hr === void 0 ? void 0 : hr.nextUntil("hr");
|
||||
const links = [];
|
||||
list.each((index, element) => {
|
||||
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
||||
element = $(element);
|
||||
// title
|
||||
const title = (element === null || element === void 0 ? void 0 : element.text()) || "";
|
||||
const quality = ((_a = element === null || element === void 0 ? void 0 : element.text().match(/\d+p\b/)) === null || _a === void 0 ? void 0 : _a[0]) || "";
|
||||
// console.log(title);
|
||||
// movieLinks
|
||||
const movieLinks = (element === null || element === void 0 ? void 0 : element.next().find(".dwd-button").text().toLowerCase().includes("download"))
|
||||
? (_c = (_b = element === null || element === void 0 ? void 0 : element.next().find(".dwd-button")) === null || _b === void 0 ? void 0 : _b.parent()) === null || _c === void 0 ? void 0 : _c.attr("href")
|
||||
: "";
|
||||
// episode links
|
||||
const vcloudLinks = (_e = (_d = element === null || element === void 0 ? void 0 : element.next().find(".btn-outline[style='background:linear-gradient(135deg,#ed0b0b,#f2d152); color: white;'],.btn-outline[style='background:linear-gradient(135deg,#ed0b0b,#f2d152); color: #fdf8f2;']")) === null || _d === void 0 ? void 0 : _d.parent()) === null || _e === void 0 ? void 0 : _e.attr("href");
|
||||
console.log(title);
|
||||
const episodesLink = (vcloudLinks
|
||||
? vcloudLinks
|
||||
: (element === null || element === void 0 ? void 0 : element.next().find(".dwd-button").text().toLowerCase().includes("episode"))
|
||||
? (_g = (_f = element === null || element === void 0 ? void 0 : element.next().find(".dwd-button")) === null || _f === void 0 ? void 0 : _f.parent()) === null || _g === void 0 ? void 0 : _g.attr("href")
|
||||
: "") ||
|
||||
((_j = (_h = element === null || element === void 0 ? void 0 : element.next().find(".btn-outline[style='background:linear-gradient(135deg,#0ebac3,#09d261); color: white;']")) === null || _h === void 0 ? void 0 : _h.parent()) === null || _j === void 0 ? void 0 : _j.attr("href"));
|
||||
if (movieLinks || episodesLink) {
|
||||
links.push({
|
||||
title,
|
||||
directLinks: movieLinks
|
||||
? [{ title: "Movie", link: movieLinks, type: "movie" }]
|
||||
: [],
|
||||
episodesLink,
|
||||
quality,
|
||||
});
|
||||
}
|
||||
});
|
||||
// console.log(links);
|
||||
return {
|
||||
title,
|
||||
synopsis,
|
||||
image,
|
||||
imdbId,
|
||||
type,
|
||||
linkList: links,
|
||||
};
|
||||
}
|
||||
catch (error) {
|
||||
console.log("getInfo error");
|
||||
console.error(error);
|
||||
// ToastAndroid.show('No response', ToastAndroid.SHORT);
|
||||
return {
|
||||
title: "",
|
||||
synopsis: "",
|
||||
image: "",
|
||||
imdbId: "",
|
||||
type: "",
|
||||
linkList: [],
|
||||
};
|
||||
}
|
||||
});
|
||||
exports.getMeta = getMeta;
|
||||
"use strict";var __awaiter=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))(function(o,l){function d(e){try{v(n.next(e))}catch(e){l(e)}}function a(e){try{v(n.throw(e))}catch(e){l(e)}}function v(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(d,a)}v((n=n.apply(e,t||[])).next())})};Object.defineProperty(exports,"__esModule",{value:!0}),exports.getMeta=void 0;const 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:"_lscache_vary=62abf8b96599676eb8ec211cffaeb8ff; ext_name=ojplmecpdpgccookcobabopnaifgidhf; cf_clearance=n4Y1XTKZ5TfIMBNQuAXzerwKpx0U35KoOm3imfT0GpU-1732097818-1.2.1.1-ZeAnEu.8D9TSZHYDoj7vwo1A1rpdKl304ZpaBn_QbAQOr211JFAb7.JRQU3EL2eIy1Dfl8HhYvH7_259.22lUz8gbchHcQ8hvfuQXMtFMCbqDBLzjNUZa9stuk.39l28IcPhH9Z2szsf3SGtNI1sAfo66Djt7sOReLK3lHw9UkJp7BdGqt6a2X9qAc8EsAI3lE480Tmt0fkHv14Oc30LSbPB_WwFmiqAki2W.Gv9hV7TN_QBFESleTDlXd.6KGflfd4.KwWF7rpSRo_cgoc9ALLLIafpxHVbe7_g5r7zvpml_Pj8fEL75fw.1GBuy16bciHBuB8s_kahuJYUnhtQFFgfTQl8_Gn6KeovBWx.PJ7nFv5sklHUfAyBVq3t30xKe8ZDydsQ_G.yipfj_In5GmmWcXGb6E4.bioDOwW_sKLtxwdTQt7Nu.RkILX_mKvXNpyLqflIVj8G7X5E8I.unw","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=e=>__awaiter(void 0,[e],void 0,function*({link:e,providerContext:t}){var i,n,o,l,d,a,v,r,c,u,s,f,p,h,b,g,x,m,w;try{const{axios:_,cheerio:y}=t,k=e,L=k.split("/").slice(0,3).join("/"),A=yield _.get(k,{headers:Object.assign(Object.assign({},headers),{Referer:L})}),I=y.load(A.data),K=I(".entry-content,.post-inner"),M=null==K?void 0:K.find("h3"),S=(null===(a=null===(d=null===(l=null===(o=null===(n=null===(i=null==M?void 0:M.next("p"))||void 0===i?void 0:i.find("a"))||void 0===n?void 0:n[0])||void 0===o?void 0:o.attribs)||void 0===l?void 0:l.href)||void 0===d?void 0:d.match(/tt\d+/g))||void 0===a?void 0:a[0])||(null===(v=K.text().match(/tt\d+/g))||void 0===v?void 0:v[0])||"",U=(null===(c=null===(r=null==M?void 0:M.next("p"))||void 0===r?void 0:r.text())||void 0===c?void 0:c.includes("Series Name"))?"series":"movie",q=/Name: (.+)/,B=(null===(f=null===(s=null===(u=null==M?void 0:M.next("p"))||void 0===u?void 0:u.text())||void 0===s?void 0:s.match(q))||void 0===f?void 0:f[1])||"",F=null===(x=null===(g=null===(b=null===(h=null===(p=null==K?void 0:K.find("p"))||void 0===p?void 0:p.next("h3,h4"))||void 0===h?void 0:h.next("p"))||void 0===b?void 0:b[0])||void 0===g?void 0:g.children)||void 0===x?void 0:x[0],G=F&&"data"in F?F.data:"";let T=(null===(m=null==K?void 0:K.find("img[data-lazy-src]"))||void 0===m?void 0:m.attr("data-lazy-src"))||"";T.startsWith("//")&&(T="https:"+T);const j=null===(w=null==K?void 0:K.first())||void 0===w?void 0:w.find("hr"),H=null==j?void 0:j.nextUntil("hr"),N=[];return H.each((e,t)=>{var i,n,o,l,d,a,v,r,c;const u=(null==(t=I(t))?void 0:t.text())||"",s=(null===(i=null==t?void 0:t.text().match(/\d+p\b/))||void 0===i?void 0:i[0])||"",f=(null==t?void 0:t.next().find(".dwd-button").text().toLowerCase().includes("download"))?null===(o=null===(n=null==t?void 0:t.next().find(".dwd-button"))||void 0===n?void 0:n.parent())||void 0===o?void 0:o.attr("href"):"",p=null===(d=null===(l=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;']"))||void 0===l?void 0:l.parent())||void 0===d?void 0:d.attr("href"),h=p||((null==t?void 0:t.next().find(".dwd-button").text().toLowerCase().includes("episode"))?null===(v=null===(a=null==t?void 0:t.next().find(".dwd-button"))||void 0===a?void 0:a.parent())||void 0===v?void 0:v.attr("href"):"")||(null===(c=null===(r=null==t?void 0:t.next().find(".btn-outline[style='background:linear-gradient(135deg,#0ebac3,#09d261); color: white;']"))||void 0===r?void 0:r.parent())||void 0===c?void 0:c.attr("href"));(f||h)&&N.push({title:u,directLinks:f?[{title:"Movie",link:f,type:"movie"}]:[],episodesLink:h,quality:s})}),{title:B,synopsis:G,image:T,imdbId:S,type:U,linkList:N}}catch(e){return{title:"",synopsis:"",image:"",imdbId:"",type:"",linkList:[]}}});exports.getMeta=getMeta;
|
||||
86
dist/luxMovies/posts.js
vendored
86
dist/luxMovies/posts.js
vendored
@@ -1,85 +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.getSearchPosts = exports.getPosts = void 0;
|
||||
const headers = {
|
||||
Accept: "text/html,application/xhtml+xml,application/xml;q=0.9,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: "ext_name=ojplmecpdpgccookcobabopnaifgidhf; cf_clearance=lDWFqLsHL5LZ.VpfxQRtHY2_mpXRuq3OFTbVDKNIZGw-1752051595-1.2.1.1-VZ2S8yUrcCuOMLUgWfNv9a1LrtuhUKEd.uPN1Au_9tuTFYLra7ugoFBYKfsunvzrBOlYSYM0q8J7vpw.JhGZH0RO6MlaVBKH5olmoryhd6s11LXg7ZF1Ld_NedYoA7uKk_SBhbb1CCsj11S52U9VUve7twrLEjILmw3MEURU1eGqOOi3YGxtGgpQBNYgfnkJCoRkLB_6vQESw4RcIvO1j1BHMuyMVEkbn7sBtLEX52w",
|
||||
"Upgrade-Insecure-Requests": "1",
|
||||
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36 Edg/138.0.0.0",
|
||||
};
|
||||
const getPosts = (_a) => __awaiter(void 0, [_a], void 0, function* ({ filter, page, providerValue, signal, providerContext, }) {
|
||||
const { getBaseUrl } = providerContext;
|
||||
const baseUrl = yield getBaseUrl("lux");
|
||||
console.log("vegaGetPosts baseUrl:", providerValue, baseUrl);
|
||||
const url = `${baseUrl}/${filter}/page/${page}/`;
|
||||
console.log("lux url:", url);
|
||||
return posts(url, signal, providerContext);
|
||||
});
|
||||
exports.getPosts = getPosts;
|
||||
const getSearchPosts = (_a) => __awaiter(void 0, [_a], void 0, function* ({ searchQuery, page, providerValue, signal, providerContext, }) {
|
||||
const { getBaseUrl } = providerContext;
|
||||
const baseUrl = yield getBaseUrl("lux");
|
||||
console.log("vegaGetPosts baseUrl:", providerValue, baseUrl);
|
||||
const url = page === 1
|
||||
? `${baseUrl}/?s=${searchQuery}`
|
||||
: `${baseUrl}/page/${page}/?s=${searchQuery}`;
|
||||
console.log("lux url:", url);
|
||||
return posts(url, signal, providerContext);
|
||||
});
|
||||
exports.getSearchPosts = getSearchPosts;
|
||||
function posts(url, signal, providerContext) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
var _a, _b;
|
||||
try {
|
||||
const { axios, cheerio } = providerContext;
|
||||
const urlRes = yield axios.get(url, {
|
||||
headers: Object.assign(Object.assign({}, headers), { Referer: url }),
|
||||
signal,
|
||||
});
|
||||
const $ = cheerio.load(urlRes.data);
|
||||
const posts = [];
|
||||
(_b = (_a = $(".blog-items")) === null || _a === void 0 ? void 0 : _a.children("article")) === null || _b === void 0 ? void 0 : _b.each((index, element) => {
|
||||
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
||||
const post = {
|
||||
title: ((_e = (_d = (_c = (_b = (_a = $(element)) === null || _a === void 0 ? void 0 : _a.find("a")) === null || _b === void 0 ? void 0 : _b.attr("title")) === null || _c === void 0 ? void 0 : _c.replace("Download", "")) === null || _d === void 0 ? void 0 : _d.match(/^(.*?)\s*\((\d{4})\)|^(.*?)\s*\((Season \d+)\)/)) === null || _e === void 0 ? void 0 : _e[0]) ||
|
||||
((_h = (_g = (_f = $(element)) === null || _f === void 0 ? void 0 : _f.find("a")) === null || _g === void 0 ? void 0 : _g.attr("title")) === null || _h === void 0 ? void 0 : _h.replace("Download", "")) ||
|
||||
"",
|
||||
link: ((_k = (_j = $(element)) === null || _j === void 0 ? void 0 : _j.find("a")) === null || _k === void 0 ? void 0 : _k.attr("href")) || "",
|
||||
image: $(element).find("a").find("img").attr("data-lazy-src") ||
|
||||
$(element).find("a").find("img").attr("data-src") ||
|
||||
$(element).find("a").find("img").attr("src") ||
|
||||
"",
|
||||
};
|
||||
if (post.image.startsWith("//")) {
|
||||
post.image = "https:" + post.image;
|
||||
}
|
||||
posts.push(post);
|
||||
});
|
||||
// console.log(posts);
|
||||
return posts;
|
||||
}
|
||||
catch (error) {
|
||||
console.error("vegaGetPosts error:", error);
|
||||
return [];
|
||||
}
|
||||
});
|
||||
}
|
||||
"use strict";var __awaiter=this&&this.__awaiter||function(e,t,i,o){return new(i||(i=Promise))(function(a,n){function r(e){try{c(o.next(e))}catch(e){n(e)}}function s(e){try{c(o.throw(e))}catch(e){n(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(r,s)}c((o=o.apply(e,t||[])).next())})};Object.defineProperty(exports,"__esModule",{value:!0}),exports.getSearchPosts=exports.getPosts=void 0;const headers={Accept:"text/html,application/xhtml+xml,application/xml;q=0.9,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:"ext_name=ojplmecpdpgccookcobabopnaifgidhf; cf_clearance=lDWFqLsHL5LZ.VpfxQRtHY2_mpXRuq3OFTbVDKNIZGw-1752051595-1.2.1.1-VZ2S8yUrcCuOMLUgWfNv9a1LrtuhUKEd.uPN1Au_9tuTFYLra7ugoFBYKfsunvzrBOlYSYM0q8J7vpw.JhGZH0RO6MlaVBKH5olmoryhd6s11LXg7ZF1Ld_NedYoA7uKk_SBhbb1CCsj11S52U9VUve7twrLEjILmw3MEURU1eGqOOi3YGxtGgpQBNYgfnkJCoRkLB_6vQESw4RcIvO1j1BHMuyMVEkbn7sBtLEX52w","Upgrade-Insecure-Requests":"1","User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36 Edg/138.0.0.0"},getPosts=e=>__awaiter(void 0,[e],void 0,function*({filter:e,page:t,providerValue:i,signal:o,providerContext:a}){const{getBaseUrl:n}=a;return posts(`${yield n("lux")}/${e}/page/${t}/`,o,a)});exports.getPosts=getPosts;const getSearchPosts=e=>__awaiter(void 0,[e],void 0,function*({searchQuery:e,page:t,providerValue:i,signal:o,providerContext:a}){const{getBaseUrl:n}=a,r=yield n("lux");return posts(1===t?`${r}/?s=${e}`:`${r}/page/${t}/?s=${e}`,o,a)});function posts(e,t,i){return __awaiter(this,void 0,void 0,function*(){var o,a;try{const{axios:n,cheerio:r}=i,s=yield n.get(e,{headers:Object.assign(Object.assign({},headers),{Referer:e}),signal:t}),c=r.load(s.data),d=[];return null===(a=null===(o=c(".blog-items"))||void 0===o?void 0:o.children("article"))||void 0===a||a.each((e,t)=>{var i,o,a,n,r,s,l,u,v,g;const p={title:(null===(r=null===(n=null===(a=null===(o=null===(i=c(t))||void 0===i?void 0:i.find("a"))||void 0===o?void 0:o.attr("title"))||void 0===a?void 0:a.replace("Download",""))||void 0===n?void 0:n.match(/^(.*?)\s*\((\d{4})\)|^(.*?)\s*\((Season \d+)\)/))||void 0===r?void 0:r[0])||(null===(u=null===(l=null===(s=c(t))||void 0===s?void 0:s.find("a"))||void 0===l?void 0:l.attr("title"))||void 0===u?void 0:u.replace("Download",""))||"",link:(null===(g=null===(v=c(t))||void 0===v?void 0:v.find("a"))||void 0===g?void 0:g.attr("href"))||"",image:c(t).find("a").find("img").attr("data-lazy-src")||c(t).find("a").find("img").attr("data-src")||c(t).find("a").find("img").attr("src")||""};p.image.startsWith("//")&&(p.image="https:"+p.image),d.push(p)}),d}catch(e){return[]}})}exports.getSearchPosts=getSearchPosts;
|
||||
104
dist/luxMovies/stream.js
vendored
104
dist/luxMovies/stream.js
vendored
@@ -1,103 +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.getStream = getStream;
|
||||
const 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: "_lscache_vary=62abf8b96599676eb8ec211cffaeb8ff; ext_name=ojplmecpdpgccookcobabopnaifgidhf; cf_clearance=n4Y1XTKZ5TfIMBNQuAXzerwKpx0U35KoOm3imfT0GpU-1732097818-1.2.1.1-ZeAnEu.8D9TSZHYDoj7vwo1A1rpdKl304ZpaBn_QbAQOr211JFAb7.JRQU3EL2eIy1Dfl8HhYvH7_259.22lUz8gbchHcQ8hvfuQXMtFMCbqDBLzjNUZa9stuk.39l28IcPhH9Z2szsf3SGtNI1sAfo66Djt7sOReLK3lHw9UkJp7BdGqt6a2X9qAc8EsAI3lE480Tmt0fkHv14Oc30LSbPB_WwFmiqAki2W.Gv9hV7TN_QBFESleTDlXd.6KGflfd4.KwWF7rpSRo_cgoc9ALLLIafpxHVbe7_g5r7zvpml_Pj8fEL75fw.1GBuy16bciHBuB8s_kahuJYUnhtQFFgfTQl8_Gn6KeovBWx.PJ7nFv5sklHUfAyBVq3t30xKe8ZDydsQ_G.yipfj_In5GmmWcXGb6E4.bioDOwW_sKLtxwdTQt7Nu.RkILX_mKvXNpyLqflIVj8G7X5E8I.unw",
|
||||
"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",
|
||||
};
|
||||
function getStream(_a) {
|
||||
return __awaiter(this, arguments, void 0, function* ({ link, type, signal, providerContext, }) {
|
||||
var _b, _c, _d, _e;
|
||||
const { axios, cheerio, extractors } = providerContext;
|
||||
const { hubcloudExtracter } = extractors;
|
||||
try {
|
||||
const streamLinks = [];
|
||||
console.log("dotlink", link);
|
||||
if (type === "movie") {
|
||||
// vlink
|
||||
const dotlinkRes = yield axios(`${link}`, { headers });
|
||||
const dotlinkText = dotlinkRes.data;
|
||||
// console.log('dotlinkText', dotlinkText);
|
||||
const vlink = dotlinkText.match(/<a\s+href="([^"]*cloud\.[^"]*)"/i) || [];
|
||||
// console.log('vLink', vlink[1]);
|
||||
link = vlink[1];
|
||||
// filepress link
|
||||
try {
|
||||
const $ = cheerio.load(dotlinkText);
|
||||
const filepressLink = $('.btn.btn-sm.btn-outline[style="background:linear-gradient(135deg,rgb(252,185,0) 0%,rgb(0,0,0)); color: #fdf8f2;"]')
|
||||
.parent()
|
||||
.attr("href");
|
||||
// console.log('filepressLink', filepressLink);
|
||||
const filepressID = filepressLink === null || filepressLink === void 0 ? void 0 : filepressLink.split("/").pop();
|
||||
const filepressBaseUrl = filepressLink === null || filepressLink === void 0 ? void 0 : filepressLink.split("/").slice(0, -2).join("/");
|
||||
// console.log('filepressID', filepressID);
|
||||
// console.log('filepressBaseUrl', filepressBaseUrl);
|
||||
const filepressTokenRes = yield axios.post(filepressBaseUrl + "/api/file/downlaod/", {
|
||||
id: filepressID,
|
||||
method: "indexDownlaod",
|
||||
captchaValue: null,
|
||||
}, {
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
Referer: filepressBaseUrl,
|
||||
},
|
||||
});
|
||||
// console.log('filepressTokenRes', filepressTokenRes.data);
|
||||
if ((_b = filepressTokenRes.data) === null || _b === void 0 ? void 0 : _b.status) {
|
||||
const filepressToken = (_c = filepressTokenRes.data) === null || _c === void 0 ? void 0 : _c.data;
|
||||
const filepressStreamLink = yield axios.post(filepressBaseUrl + "/api/file/downlaod2/", {
|
||||
id: filepressToken,
|
||||
method: "indexDownlaod",
|
||||
captchaValue: null,
|
||||
}, {
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
Referer: filepressBaseUrl,
|
||||
},
|
||||
});
|
||||
// console.log('filepressStreamLink', filepressStreamLink.data);
|
||||
streamLinks.push({
|
||||
server: "filepress",
|
||||
link: (_e = (_d = filepressStreamLink.data) === null || _d === void 0 ? void 0 : _d.data) === null || _e === void 0 ? void 0 : _e[0],
|
||||
type: "mkv",
|
||||
});
|
||||
}
|
||||
}
|
||||
catch (error) {
|
||||
console.log("filepress error: ");
|
||||
// console.error(error);
|
||||
}
|
||||
}
|
||||
return yield hubcloudExtracter(link, signal);
|
||||
}
|
||||
catch (error) {
|
||||
console.log("getStream error: ", error);
|
||||
if (error.message.includes("Aborted")) {
|
||||
}
|
||||
else {
|
||||
}
|
||||
return [];
|
||||
}
|
||||
});
|
||||
}
|
||||
"use strict";var __awaiter=this&&this.__awaiter||function(e,t,a,n){return new(a||(a=Promise))(function(o,i){function c(e){try{r(n.next(e))}catch(e){i(e)}}function l(e){try{r(n.throw(e))}catch(e){i(e)}}function r(e){var t;e.done?o(e.value):(t=e.value,t instanceof a?t:new a(function(e){e(t)})).then(c,l)}r((n=n.apply(e,t||[])).next())})};Object.defineProperty(exports,"__esModule",{value:!0}),exports.getStream=getStream;const 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:"_lscache_vary=62abf8b96599676eb8ec211cffaeb8ff; ext_name=ojplmecpdpgccookcobabopnaifgidhf; cf_clearance=n4Y1XTKZ5TfIMBNQuAXzerwKpx0U35KoOm3imfT0GpU-1732097818-1.2.1.1-ZeAnEu.8D9TSZHYDoj7vwo1A1rpdKl304ZpaBn_QbAQOr211JFAb7.JRQU3EL2eIy1Dfl8HhYvH7_259.22lUz8gbchHcQ8hvfuQXMtFMCbqDBLzjNUZa9stuk.39l28IcPhH9Z2szsf3SGtNI1sAfo66Djt7sOReLK3lHw9UkJp7BdGqt6a2X9qAc8EsAI3lE480Tmt0fkHv14Oc30LSbPB_WwFmiqAki2W.Gv9hV7TN_QBFESleTDlXd.6KGflfd4.KwWF7rpSRo_cgoc9ALLLIafpxHVbe7_g5r7zvpml_Pj8fEL75fw.1GBuy16bciHBuB8s_kahuJYUnhtQFFgfTQl8_Gn6KeovBWx.PJ7nFv5sklHUfAyBVq3t30xKe8ZDydsQ_G.yipfj_In5GmmWcXGb6E4.bioDOwW_sKLtxwdTQt7Nu.RkILX_mKvXNpyLqflIVj8G7X5E8I.unw","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"};function getStream(e){return __awaiter(this,arguments,void 0,function*({link:e,type:t,signal:a,providerContext:n}){var o,i,c,l;const{axios:r,cheerio:d,extractors:s}=n,{hubcloudExtracter:p}=s;try{const n=[];if("movie"===t){const t=(yield r(`${e}`,{headers:headers})).data;e=(t.match(/<a\s+href="([^"]*cloud\.[^"]*)"/i)||[])[1];try{const e=d.load(t)('.btn.btn-sm.btn-outline[style="background:linear-gradient(135deg,rgb(252,185,0) 0%,rgb(0,0,0)); color: #fdf8f2;"]').parent().attr("href"),a=null==e?void 0:e.split("/").pop(),s=null==e?void 0:e.split("/").slice(0,-2).join("/"),p=yield r.post(s+"/api/file/downlaod/",{id:a,method:"indexDownlaod",captchaValue:null},{headers:{"Content-Type":"application/json",Referer:s}});if(null===(o=p.data)||void 0===o?void 0:o.status){const e=null===(i=p.data)||void 0===i?void 0:i.data,t=yield r.post(s+"/api/file/downlaod2/",{id:e,method:"indexDownlaod",captchaValue:null},{headers:{"Content-Type":"application/json",Referer:s}});n.push({server:"filepress",link:null===(l=null===(c=t.data)||void 0===c?void 0:c.data)||void 0===l?void 0:l[0],type:"mkv"})}}catch(e){}}return yield p(e,a)}catch(e){return e.message.includes("Aborted"),[]}})}
|
||||
Reference in New Issue
Block a user