mirror of
https://github.com/vega-org/vega-providers.git
synced 2026-04-17 23:51:44 +00:00
minify
This commit is contained in:
15
dist/dooflix/catalog.js
vendored
15
dist/dooflix/catalog.js
vendored
@@ -1,14 +1 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.genres = exports.catalog = void 0;
|
||||
exports.catalog = [
|
||||
{
|
||||
title: "Series",
|
||||
filter: "/rest-api//v130/tvseries",
|
||||
},
|
||||
{
|
||||
title: "Movies",
|
||||
filter: "/rest-api//v130/movies",
|
||||
},
|
||||
];
|
||||
exports.genres = [];
|
||||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.genres=exports.catalog=void 0,exports.catalog=[{title:"Series",filter:"/rest-api//v130/tvseries"},{title:"Movies",filter:"/rest-api//v130/movies"}],exports.genres=[];
|
||||
93
dist/dooflix/meta.js
vendored
93
dist/dooflix/meta.js
vendored
@@ -1,92 +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-Encoding": "gzip",
|
||||
"API-KEY": "2pm95lc6prpdbk0ppji9rsqo",
|
||||
Connection: "Keep-Alive",
|
||||
"If-Modified-Since": "Wed, 14 Aug 2024 13:00:04 GMT",
|
||||
"User-Agent": "okhttp/3.14.9",
|
||||
};
|
||||
const getMeta = function (_a) {
|
||||
return __awaiter(this, arguments, void 0, function* ({ link, providerContext, }) {
|
||||
var _b, _c, _d, _e;
|
||||
try {
|
||||
const { axios } = providerContext;
|
||||
const res = yield axios.get(link, { headers });
|
||||
const resData = res.data;
|
||||
const jsonStart = resData === null || resData === void 0 ? void 0 : resData.indexOf("{");
|
||||
const jsonEnd = (resData === null || resData === void 0 ? void 0 : resData.lastIndexOf("}")) + 1;
|
||||
const data = ((_b = JSON === null || JSON === void 0 ? void 0 : JSON.parse(resData === null || resData === void 0 ? void 0 : resData.substring(jsonStart, jsonEnd))) === null || _b === void 0 ? void 0 : _b.title)
|
||||
? JSON === null || JSON === void 0 ? void 0 : JSON.parse(resData === null || resData === void 0 ? void 0 : resData.substring(jsonStart, jsonEnd))
|
||||
: resData;
|
||||
const title = (data === null || data === void 0 ? void 0 : data.title) || "";
|
||||
const synopsis = (data === null || data === void 0 ? void 0 : data.description) || "";
|
||||
const image = (data === null || data === void 0 ? void 0 : data.poster_url) || "";
|
||||
const cast = (data === null || data === void 0 ? void 0 : data.cast) || [];
|
||||
const rating = (data === null || data === void 0 ? void 0 : data.imdb_rating) || "";
|
||||
const type = Number(data === null || data === void 0 ? void 0 : data.is_tvseries) ? "series" : "movie";
|
||||
const tags = ((_c = data === null || data === void 0 ? void 0 : data.genre) === null || _c === void 0 ? void 0 : _c.map((genre) => genre === null || genre === void 0 ? void 0 : genre.name)) || [];
|
||||
const links = [];
|
||||
if (type === "series") {
|
||||
(_d = data === null || data === void 0 ? void 0 : data.season) === null || _d === void 0 ? void 0 : _d.map((season) => {
|
||||
var _a;
|
||||
const title = (season === null || season === void 0 ? void 0 : season.seasons_name) || "";
|
||||
const directLinks = ((_a = season === null || season === void 0 ? void 0 : season.episodes) === null || _a === void 0 ? void 0 : _a.map((episode) => ({
|
||||
title: episode === null || episode === void 0 ? void 0 : episode.episodes_name,
|
||||
link: episode === null || episode === void 0 ? void 0 : episode.file_url,
|
||||
}))) || [];
|
||||
links.push({
|
||||
title: title,
|
||||
directLinks: directLinks,
|
||||
});
|
||||
});
|
||||
}
|
||||
else {
|
||||
(_e = data === null || data === void 0 ? void 0 : data.videos) === null || _e === void 0 ? void 0 : _e.map((video) => {
|
||||
links.push({
|
||||
title: title + " " + (video === null || video === void 0 ? void 0 : video.label),
|
||||
directLinks: [
|
||||
{
|
||||
title: "Play",
|
||||
link: video === null || video === void 0 ? void 0 : video.file_url,
|
||||
},
|
||||
],
|
||||
});
|
||||
});
|
||||
}
|
||||
return {
|
||||
image: (image === null || image === void 0 ? void 0 : image.includes("https")) ? image : image === null || image === void 0 ? void 0 : image.replace("http", "https"),
|
||||
synopsis: synopsis,
|
||||
title: title,
|
||||
rating: rating,
|
||||
imdbId: "",
|
||||
cast: cast,
|
||||
tags: tags,
|
||||
type: type,
|
||||
linkList: links,
|
||||
};
|
||||
}
|
||||
catch (err) {
|
||||
console.error(err);
|
||||
return {
|
||||
title: "",
|
||||
synopsis: "",
|
||||
image: "",
|
||||
imdbId: "",
|
||||
type: "movie",
|
||||
linkList: [],
|
||||
};
|
||||
}
|
||||
});
|
||||
};
|
||||
exports.getMeta = getMeta;
|
||||
"use strict";var __awaiter=this&&this.__awaiter||function(i,e,t,n){return new(t||(t=Promise))(function(l,o){function d(i){try{u(n.next(i))}catch(i){o(i)}}function s(i){try{u(n.throw(i))}catch(i){o(i)}}function u(i){var e;i.done?l(i.value):(e=i.value,e instanceof t?e:new t(function(i){i(e)})).then(d,s)}u((n=n.apply(i,e||[])).next())})};Object.defineProperty(exports,"__esModule",{value:!0}),exports.getMeta=void 0;const headers={"Accept-Encoding":"gzip","API-KEY":"2pm95lc6prpdbk0ppji9rsqo",Connection:"Keep-Alive","If-Modified-Since":"Wed, 14 Aug 2024 13:00:04 GMT","User-Agent":"okhttp/3.14.9"},getMeta=function(i){return __awaiter(this,arguments,void 0,function*({link:i,providerContext:e}){var t,n,l,o;try{const{axios:d}=e,s=(yield d.get(i,{headers:headers})).data,u=null==s?void 0:s.indexOf("{"),r=(null==s?void 0:s.lastIndexOf("}"))+1,a=(null===(t=null===JSON||void 0===JSON?void 0:JSON.parse(null==s?void 0:s.substring(u,r)))||void 0===t?void 0:t.title)?null===JSON||void 0===JSON?void 0:JSON.parse(null==s?void 0:s.substring(u,r)):s,v=(null==a?void 0:a.title)||"",p=(null==a?void 0:a.description)||"",c=(null==a?void 0:a.poster_url)||"",g=(null==a?void 0:a.cast)||[],h=(null==a?void 0:a.imdb_rating)||"",m=Number(null==a?void 0:a.is_tvseries)?"series":"movie",f=(null===(n=null==a?void 0:a.genre)||void 0===n?void 0:n.map(i=>null==i?void 0:i.name))||[],_=[];return"series"===m?null===(l=null==a?void 0:a.season)||void 0===l||l.map(i=>{var e;const t=(null==i?void 0:i.seasons_name)||"",n=(null===(e=null==i?void 0:i.episodes)||void 0===e?void 0:e.map(i=>({title:null==i?void 0:i.episodes_name,link:null==i?void 0:i.file_url})))||[];_.push({title:t,directLinks:n})}):null===(o=null==a?void 0:a.videos)||void 0===o||o.map(i=>{_.push({title:v+" "+(null==i?void 0:i.label),directLinks:[{title:"Play",link:null==i?void 0:i.file_url}]})}),{image:(null==c?void 0:c.includes("https"))?c:null==c?void 0:c.replace("http","https"),synopsis:p,title:v,rating:h,imdbId:"",cast:g,tags:f,type:m,linkList:_}}catch(i){return{title:"",synopsis:"",image:"",imdbId:"",type:"movie",linkList:[]}}})};exports.getMeta=getMeta;
|
||||
155
dist/dooflix/posts.js
vendored
155
dist/dooflix/posts.js
vendored
@@ -1,154 +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-Encoding": "gzip",
|
||||
"API-KEY": "2pm95lc6prpdbk0ppji9rsqo",
|
||||
Connection: "Keep-Alive",
|
||||
"If-Modified-Since": "Wed, 14 Aug 2024 13:00:04 GMT",
|
||||
"User-Agent": "okhttp/3.14.9",
|
||||
};
|
||||
const getPosts = function (_a) {
|
||||
return __awaiter(this, arguments, void 0, function* ({ filter, page, signal, providerContext, }) {
|
||||
try {
|
||||
const { axios, getBaseUrl } = providerContext;
|
||||
const baseUrl = yield getBaseUrl("dooflix");
|
||||
const catalog = [];
|
||||
const url = `${baseUrl + filter + `?page=${page}`}`;
|
||||
const res = yield axios.get(url, { headers, signal });
|
||||
const resData = res.data;
|
||||
if (!resData || typeof resData !== "string") {
|
||||
console.warn("Unexpected response format from dooflix API");
|
||||
return [];
|
||||
}
|
||||
let data;
|
||||
try {
|
||||
const jsonStart = resData.indexOf("[");
|
||||
const jsonEnd = resData.lastIndexOf("]") + 1;
|
||||
if (jsonStart === -1 || jsonEnd <= jsonStart) {
|
||||
// If we can't find valid JSON array markers, try parsing the entire response
|
||||
data = JSON.parse(resData);
|
||||
}
|
||||
else {
|
||||
const jsonSubstring = resData.substring(jsonStart, jsonEnd);
|
||||
const parsedArray = JSON.parse(jsonSubstring);
|
||||
data = parsedArray.length > 0 ? parsedArray : resData;
|
||||
}
|
||||
}
|
||||
catch (parseError) {
|
||||
console.error("Error parsing dooflix response:", parseError);
|
||||
return [];
|
||||
}
|
||||
if (!Array.isArray(data)) {
|
||||
console.warn("Unexpected data format from dooflix API");
|
||||
return [];
|
||||
}
|
||||
data.forEach((result) => {
|
||||
const id = result === null || result === void 0 ? void 0 : result.videos_id;
|
||||
if (!id)
|
||||
return;
|
||||
const type = !(result === null || result === void 0 ? void 0 : result.is_tvseries) ? "tvseries" : "movie";
|
||||
const link = `${baseUrl}/rest-api//v130/single_details?type=${type}&id=${id}`;
|
||||
const thumbnailUrl = result === null || result === void 0 ? void 0 : result.thumbnail_url;
|
||||
const image = (thumbnailUrl === null || thumbnailUrl === void 0 ? void 0 : thumbnailUrl.includes("https"))
|
||||
? thumbnailUrl
|
||||
: thumbnailUrl === null || thumbnailUrl === void 0 ? void 0 : thumbnailUrl.replace("http", "https");
|
||||
catalog.push({
|
||||
title: (result === null || result === void 0 ? void 0 : result.title) || "",
|
||||
link,
|
||||
image,
|
||||
});
|
||||
});
|
||||
return catalog;
|
||||
}
|
||||
catch (err) {
|
||||
console.error("dooflix error:", err);
|
||||
return [];
|
||||
}
|
||||
});
|
||||
};
|
||||
exports.getPosts = getPosts;
|
||||
const getSearchPosts = function (_a) {
|
||||
return __awaiter(this, arguments, void 0, function* ({ searchQuery, page, providerContext, signal, }) {
|
||||
var _b, _c;
|
||||
try {
|
||||
if (page > 1) {
|
||||
return [];
|
||||
}
|
||||
const { axios, getBaseUrl } = providerContext;
|
||||
const catalog = [];
|
||||
const baseUrl = yield getBaseUrl("dooflix");
|
||||
const url = `${baseUrl}/rest-api//v130/search?q=${searchQuery}&type=movietvserieslive&range_to=0&range_from=0&tv_category_id=0&genre_id=0&country_id=0`;
|
||||
const res = yield axios.get(url, { headers, signal });
|
||||
const resData = res.data;
|
||||
if (!resData || typeof resData !== "string") {
|
||||
console.warn("Unexpected search response format from dooflix API");
|
||||
return [];
|
||||
}
|
||||
let data;
|
||||
try {
|
||||
const jsonStart = resData.indexOf("{");
|
||||
const jsonEnd = resData.lastIndexOf("}") + 1;
|
||||
if (jsonStart === -1 || jsonEnd <= jsonStart) {
|
||||
data = resData;
|
||||
}
|
||||
else {
|
||||
const jsonSubstring = resData.substring(jsonStart, jsonEnd);
|
||||
const parsedData = JSON.parse(jsonSubstring);
|
||||
data = (parsedData === null || parsedData === void 0 ? void 0 : parsedData.movie) ? parsedData : resData;
|
||||
}
|
||||
}
|
||||
catch (parseError) {
|
||||
console.error("Error parsing dooflix search response:", parseError);
|
||||
return [];
|
||||
}
|
||||
// Process movies
|
||||
(_b = data === null || data === void 0 ? void 0 : data.movie) === null || _b === void 0 ? void 0 : _b.forEach((result) => {
|
||||
const id = result === null || result === void 0 ? void 0 : result.videos_id;
|
||||
if (!id)
|
||||
return;
|
||||
const link = `${baseUrl}/rest-api//v130/single_details?type=movie&id=${id}`;
|
||||
const thumbnailUrl = result === null || result === void 0 ? void 0 : result.thumbnail_url;
|
||||
const image = (thumbnailUrl === null || thumbnailUrl === void 0 ? void 0 : thumbnailUrl.includes("https"))
|
||||
? thumbnailUrl
|
||||
: thumbnailUrl === null || thumbnailUrl === void 0 ? void 0 : thumbnailUrl.replace("http", "https");
|
||||
catalog.push({
|
||||
title: (result === null || result === void 0 ? void 0 : result.title) || "",
|
||||
link,
|
||||
image,
|
||||
});
|
||||
});
|
||||
// Process TV series
|
||||
(_c = data === null || data === void 0 ? void 0 : data.tvseries) === null || _c === void 0 ? void 0 : _c.forEach((result) => {
|
||||
const id = result === null || result === void 0 ? void 0 : result.videos_id;
|
||||
if (!id)
|
||||
return;
|
||||
const link = `${baseUrl}/rest-api//v130/single_details?type=tvseries&id=${id}`;
|
||||
const thumbnailUrl = result === null || result === void 0 ? void 0 : result.thumbnail_url;
|
||||
const image = (thumbnailUrl === null || thumbnailUrl === void 0 ? void 0 : thumbnailUrl.includes("https"))
|
||||
? thumbnailUrl
|
||||
: thumbnailUrl === null || thumbnailUrl === void 0 ? void 0 : thumbnailUrl.replace("http", "https");
|
||||
catalog.push({
|
||||
title: (result === null || result === void 0 ? void 0 : result.title) || "",
|
||||
link,
|
||||
image,
|
||||
});
|
||||
});
|
||||
return catalog;
|
||||
}
|
||||
catch (error) {
|
||||
console.error("dooflix search error:", error);
|
||||
return [];
|
||||
}
|
||||
});
|
||||
};
|
||||
exports.getSearchPosts = getSearchPosts;
|
||||
"use strict";var __awaiter=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))(function(s,r){function o(t){try{a(n.next(t))}catch(t){r(t)}}function l(t){try{a(n.throw(t))}catch(t){r(t)}}function a(t){var e;t.done?s(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(o,l)}a((n=n.apply(t,e||[])).next())})};Object.defineProperty(exports,"__esModule",{value:!0}),exports.getSearchPosts=exports.getPosts=void 0;const headers={"Accept-Encoding":"gzip","API-KEY":"2pm95lc6prpdbk0ppji9rsqo",Connection:"Keep-Alive","If-Modified-Since":"Wed, 14 Aug 2024 13:00:04 GMT","User-Agent":"okhttp/3.14.9"},getPosts=function(t){return __awaiter(this,arguments,void 0,function*({filter:t,page:e,signal:i,providerContext:n}){try{const{axios:s,getBaseUrl:r}=n,o=yield r("dooflix"),l=[],a=""+(o+t+`?page=${e}`),d=(yield s.get(a,{headers:headers,signal:i})).data;if(!d||"string"!=typeof d)return[];let u;try{const t=d.indexOf("["),e=d.lastIndexOf("]")+1;if(-1===t||e<=t)u=JSON.parse(d);else{const i=d.substring(t,e),n=JSON.parse(i);u=n.length>0?n:d}}catch(t){return[]}return Array.isArray(u)?(u.forEach(t=>{const e=null==t?void 0:t.videos_id;if(!e)return;const i=(null==t?void 0:t.is_tvseries)?"movie":"tvseries",n=`${o}/rest-api//v130/single_details?type=${i}&id=${e}`,s=null==t?void 0:t.thumbnail_url,r=(null==s?void 0:s.includes("https"))?s:null==s?void 0:s.replace("http","https");l.push({title:(null==t?void 0:t.title)||"",link:n,image:r})}),l):[]}catch(t){return[]}})};exports.getPosts=getPosts;const getSearchPosts=function(t){return __awaiter(this,arguments,void 0,function*({searchQuery:t,page:e,providerContext:i,signal:n}){var s,r;try{if(e>1)return[];const{axios:o,getBaseUrl:l}=i,a=[],d=yield l("dooflix"),u=`${d}/rest-api//v130/search?q=${t}&type=movietvserieslive&range_to=0&range_from=0&tv_category_id=0&genre_id=0&country_id=0`,c=(yield o.get(u,{headers:headers,signal:n})).data;if(!c||"string"!=typeof c)return[];let v;try{const t=c.indexOf("{"),e=c.lastIndexOf("}")+1;if(-1===t||e<=t)v=c;else{const i=c.substring(t,e),n=JSON.parse(i);v=(null==n?void 0:n.movie)?n:c}}catch(t){return[]}return null===(s=null==v?void 0:v.movie)||void 0===s||s.forEach(t=>{const e=null==t?void 0:t.videos_id;if(!e)return;const i=`${d}/rest-api//v130/single_details?type=movie&id=${e}`,n=null==t?void 0:t.thumbnail_url,s=(null==n?void 0:n.includes("https"))?n:null==n?void 0:n.replace("http","https");a.push({title:(null==t?void 0:t.title)||"",link:i,image:s})}),null===(r=null==v?void 0:v.tvseries)||void 0===r||r.forEach(t=>{const e=null==t?void 0:t.videos_id;if(!e)return;const i=`${d}/rest-api//v130/single_details?type=tvseries&id=${e}`,n=null==t?void 0:t.thumbnail_url,s=(null==n?void 0:n.includes("https"))?n:null==n?void 0:n.replace("http","https");a.push({title:(null==t?void 0:t.title)||"",link:i,image:s})}),a}catch(t){return[]}})};exports.getSearchPosts=getSearchPosts;
|
||||
52
dist/dooflix/stream.js
vendored
52
dist/dooflix/stream.js
vendored
@@ -1,51 +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 = void 0;
|
||||
const getStream = function (_a) {
|
||||
return __awaiter(this, arguments, void 0, function* ({ link, }) {
|
||||
try {
|
||||
const streams = [];
|
||||
const headers = {
|
||||
Connection: "Keep-Alive",
|
||||
"User-Agent": "Mozilla/5.0 (WindowsNT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.37",
|
||||
Referer: "https://molop.art/",
|
||||
Cookie: "cf_clearance=M2_2Hy4lKRy_ruRX3dzOgm3iho1FHe2DUC1lq28BUtI-1737377622-1.2.1.1-6R8RaH94._H2BuNuotsjTZ3fAF6cLwPII0guemu9A5Xa46lpCJPuELycojdREwoonYS2kRTYcZ9_1c4h4epi2LtDvMM9jIoOZKE9pIdWa30peM1hRMpvffTjGUCraHsJNCJez8S_QZ6XkkdP7GeQ5iwiYaI6Grp6qSJWoq0Hj8lS7EITZ1LzyrALI6iLlYjgLmgLGa1VuhORWJBN8ZxrJIZ_ba_pqbrR9fjnyToqxZ0XQaZfk1d3rZyNWoZUjI98GoAxVjnKtcBQQG6b2jYPJuMbbYraGoa54N7E7BR__7o",
|
||||
};
|
||||
const response = yield fetch(link, {
|
||||
redirect: "manual",
|
||||
headers: headers,
|
||||
});
|
||||
if (response.status >= 300 && response.status < 400) {
|
||||
const redirectLink = response.headers.get("Location");
|
||||
if (redirectLink) {
|
||||
link = redirectLink;
|
||||
}
|
||||
}
|
||||
if (response.url) {
|
||||
link = response.url;
|
||||
}
|
||||
streams.push({
|
||||
server: "Dooflix",
|
||||
link: link,
|
||||
headers: headers,
|
||||
type: "m3u8",
|
||||
});
|
||||
console.log("doo streams", streams);
|
||||
return streams;
|
||||
}
|
||||
catch (err) {
|
||||
console.error(err);
|
||||
return [];
|
||||
}
|
||||
});
|
||||
};
|
||||
exports.getStream = getStream;
|
||||
"use strict";var __awaiter=this&&this.__awaiter||function(e,t,r,o){return new(r||(r=Promise))(function(n,a){function i(e){try{u(o.next(e))}catch(e){a(e)}}function c(e){try{u(o.throw(e))}catch(e){a(e)}}function u(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(i,c)}u((o=o.apply(e,t||[])).next())})};Object.defineProperty(exports,"__esModule",{value:!0}),exports.getStream=void 0;const getStream=function(e){return __awaiter(this,arguments,void 0,function*({link:e}){try{const t=[],r={Connection:"Keep-Alive","User-Agent":"Mozilla/5.0 (WindowsNT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.37",Referer:"https://molop.art/",Cookie:"cf_clearance=M2_2Hy4lKRy_ruRX3dzOgm3iho1FHe2DUC1lq28BUtI-1737377622-1.2.1.1-6R8RaH94._H2BuNuotsjTZ3fAF6cLwPII0guemu9A5Xa46lpCJPuELycojdREwoonYS2kRTYcZ9_1c4h4epi2LtDvMM9jIoOZKE9pIdWa30peM1hRMpvffTjGUCraHsJNCJez8S_QZ6XkkdP7GeQ5iwiYaI6Grp6qSJWoq0Hj8lS7EITZ1LzyrALI6iLlYjgLmgLGa1VuhORWJBN8ZxrJIZ_ba_pqbrR9fjnyToqxZ0XQaZfk1d3rZyNWoZUjI98GoAxVjnKtcBQQG6b2jYPJuMbbYraGoa54N7E7BR__7o"},o=yield fetch(e,{redirect:"manual",headers:r});if(o.status>=300&&o.status<400){const t=o.headers.get("Location");t&&(e=t)}return o.url&&(e=o.url),t.push({server:"Dooflix",link:e,headers:r,type:"m3u8"}),t}catch(e){return[]}})};exports.getStream=getStream;
|
||||
Reference in New Issue
Block a user