mirror of
https://github.com/vega-org/vega-providers.git
synced 2026-06-19 13:07:44 +00:00
Compare commits
3 Commits
7722190674
...
d744db3359
| Author | SHA1 | Date | |
|---|---|---|---|
| d744db3359 | |||
| bf84ba9a6d | |||
| 040912facd |
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
+13
-13
@@ -2,7 +2,7 @@
|
|||||||
{
|
{
|
||||||
"display_name": "VegaMovies",
|
"display_name": "VegaMovies",
|
||||||
"value": "vega",
|
"value": "vega",
|
||||||
"version": "2.8",
|
"version": "2.9",
|
||||||
"icon": "",
|
"icon": "",
|
||||||
"type": "global",
|
"type": "global",
|
||||||
"disabled": false
|
"disabled": false
|
||||||
@@ -18,7 +18,7 @@
|
|||||||
{
|
{
|
||||||
"display_name": "MoviesDrive",
|
"display_name": "MoviesDrive",
|
||||||
"value": "drive",
|
"value": "drive",
|
||||||
"version": "2.1",
|
"version": "2.2",
|
||||||
"icon": "",
|
"icon": "",
|
||||||
"type": "global",
|
"type": "global",
|
||||||
"disabled": false
|
"disabled": false
|
||||||
@@ -34,7 +34,7 @@
|
|||||||
{
|
{
|
||||||
"display_name": "4khdHub",
|
"display_name": "4khdHub",
|
||||||
"value": "4khdhub",
|
"value": "4khdhub",
|
||||||
"version": "2.3",
|
"version": "2.4",
|
||||||
"icon": "",
|
"icon": "",
|
||||||
"type": "global",
|
"type": "global",
|
||||||
"disabled": false
|
"disabled": false
|
||||||
@@ -42,7 +42,7 @@
|
|||||||
{
|
{
|
||||||
"display_name": "Cinewood",
|
"display_name": "Cinewood",
|
||||||
"value": "1cinevood",
|
"value": "1cinevood",
|
||||||
"version": "1.4",
|
"version": "1.5",
|
||||||
"icon": "",
|
"icon": "",
|
||||||
"type": "global",
|
"type": "global",
|
||||||
"disabled": false
|
"disabled": false
|
||||||
@@ -58,7 +58,7 @@
|
|||||||
{
|
{
|
||||||
"display_name": "KatMoviesHd",
|
"display_name": "KatMoviesHd",
|
||||||
"value": "katmovies",
|
"value": "katmovies",
|
||||||
"version": "1.6",
|
"version": "1.7",
|
||||||
"icon": "",
|
"icon": "",
|
||||||
"type": "global",
|
"type": "global",
|
||||||
"disabled": false
|
"disabled": false
|
||||||
@@ -90,7 +90,7 @@
|
|||||||
{
|
{
|
||||||
"display_name": "CinemaLuxe",
|
"display_name": "CinemaLuxe",
|
||||||
"value": "cinemaLuxe",
|
"value": "cinemaLuxe",
|
||||||
"version": "1.7",
|
"version": "1.8",
|
||||||
"icon": "",
|
"icon": "",
|
||||||
"type": "global",
|
"type": "global",
|
||||||
"disabled": true
|
"disabled": true
|
||||||
@@ -114,7 +114,7 @@
|
|||||||
{
|
{
|
||||||
"display_name": "Movies4U",
|
"display_name": "Movies4U",
|
||||||
"value": "movies4u",
|
"value": "movies4u",
|
||||||
"version": "1.5",
|
"version": "1.6",
|
||||||
"icon": "",
|
"icon": "",
|
||||||
"type": "global",
|
"type": "global",
|
||||||
"disabled": false
|
"disabled": false
|
||||||
@@ -130,7 +130,7 @@
|
|||||||
{
|
{
|
||||||
"display_name": "Zeefliz",
|
"display_name": "Zeefliz",
|
||||||
"value": "zeefliz",
|
"value": "zeefliz",
|
||||||
"version": "1.5",
|
"version": "1.6",
|
||||||
"icon": "",
|
"icon": "",
|
||||||
"type": "global",
|
"type": "global",
|
||||||
"disabled": false
|
"disabled": false
|
||||||
@@ -138,7 +138,7 @@
|
|||||||
{
|
{
|
||||||
"display_name": "KatMovieFix",
|
"display_name": "KatMovieFix",
|
||||||
"value": "katMovieFix",
|
"value": "katMovieFix",
|
||||||
"version": "1.6",
|
"version": "1.7",
|
||||||
"icon": "",
|
"icon": "",
|
||||||
"type": "global",
|
"type": "global",
|
||||||
"disabled": true
|
"disabled": true
|
||||||
@@ -170,7 +170,7 @@
|
|||||||
{
|
{
|
||||||
"display_name": "HdHub4u",
|
"display_name": "HdHub4u",
|
||||||
"value": "hdhub4u",
|
"value": "hdhub4u",
|
||||||
"version": "2.0",
|
"version": "2.1",
|
||||||
"icon": "",
|
"icon": "",
|
||||||
"type": "global",
|
"type": "global",
|
||||||
"disabled": false
|
"disabled": false
|
||||||
@@ -290,7 +290,7 @@
|
|||||||
{
|
{
|
||||||
"display_name": "RogMovies",
|
"display_name": "RogMovies",
|
||||||
"value": "luxMovies",
|
"value": "luxMovies",
|
||||||
"version": "2.4",
|
"version": "2.5",
|
||||||
"icon": "",
|
"icon": "",
|
||||||
"type": "india",
|
"type": "india",
|
||||||
"disabled": false
|
"disabled": false
|
||||||
@@ -314,7 +314,7 @@
|
|||||||
{
|
{
|
||||||
"display_name": "SkyMovieHD",
|
"display_name": "SkyMovieHD",
|
||||||
"value": "skyMovieHD",
|
"value": "skyMovieHD",
|
||||||
"version": "1.6",
|
"version": "1.7",
|
||||||
"icon": "",
|
"icon": "",
|
||||||
"type": "global",
|
"type": "global",
|
||||||
"disabled": true
|
"disabled": true
|
||||||
@@ -322,7 +322,7 @@
|
|||||||
{
|
{
|
||||||
"display_name": "Joya9tv",
|
"display_name": "Joya9tv",
|
||||||
"value": "Joya9tv",
|
"value": "Joya9tv",
|
||||||
"version": "1.5",
|
"version": "1.7",
|
||||||
"icon": "",
|
"icon": "",
|
||||||
"type": "india",
|
"type": "india",
|
||||||
"disabled": false
|
"disabled": false
|
||||||
|
|||||||
Generated
-7
@@ -11,7 +11,6 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"axios": "^1.10.0",
|
"axios": "^1.10.0",
|
||||||
"cheerio": "^1.1.0",
|
"cheerio": "^1.1.0",
|
||||||
"react-native-aes-crypto": "^3.2.1",
|
|
||||||
"rimraf": "^6.0.1",
|
"rimraf": "^6.0.1",
|
||||||
"zod": "^4.0.2"
|
"zod": "^4.0.2"
|
||||||
},
|
},
|
||||||
@@ -2462,12 +2461,6 @@
|
|||||||
"node": ">=0.10.0"
|
"node": ">=0.10.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/react-native-aes-crypto": {
|
|
||||||
"version": "3.2.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/react-native-aes-crypto/-/react-native-aes-crypto-3.2.1.tgz",
|
|
||||||
"integrity": "sha512-v7KDt1I2UqYwRJRFeJrB8zABQuUsawCyWLK+h5AF2aZqsrsIaR/+DaZrqCetR9QvYRI+oEVsrwBUv9xYXhfCBQ==",
|
|
||||||
"license": "MIT"
|
|
||||||
},
|
|
||||||
"node_modules/readdirp": {
|
"node_modules/readdirp": {
|
||||||
"version": "3.6.0",
|
"version": "3.6.0",
|
||||||
"resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz",
|
"resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz",
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ export async function getStream({
|
|||||||
try {
|
try {
|
||||||
const streamLinks: Stream[] = [];
|
const streamLinks: Stream[] = [];
|
||||||
console.log("dotlink", link);
|
console.log("dotlink", link);
|
||||||
if (type === "movie") {
|
if (!link.includes("cloud")) {
|
||||||
// vlink
|
// vlink
|
||||||
const dotlinkRes = await fetch(`${link}`, { headers });
|
const dotlinkRes = await fetch(`${link}`, { headers });
|
||||||
const dotlinkText = await dotlinkRes.text();
|
const dotlinkText = await dotlinkRes.text();
|
||||||
|
|||||||
@@ -5,6 +5,21 @@ const hubcloudDecode = function (value: string) {
|
|||||||
return atob(value.toString());
|
return atob(value.toString());
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const extractUrlFromScript = (html: string): string => {
|
||||||
|
const doubleAtobMatch = html.match(
|
||||||
|
/var\s+url\s*=\s*atob\(atob\(['"]([^'"]+)['"]\)\)/,
|
||||||
|
);
|
||||||
|
if (doubleAtobMatch?.[1]) {
|
||||||
|
return atob(atob(doubleAtobMatch[1]));
|
||||||
|
}
|
||||||
|
const plainMatch = html.match(/var\s+url\s*=\s*['"]([^'"]+)['"]/);
|
||||||
|
return (
|
||||||
|
hubcloudDecode(plainMatch?.[1]?.split("r=")?.[1] ?? "") ||
|
||||||
|
plainMatch?.[1] ||
|
||||||
|
""
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
const getPixelDrainUrl = (html: string) => {
|
const getPixelDrainUrl = (html: string) => {
|
||||||
const match = html.match(/var\s+pxl\s*=\s*['"]([^'"]+)['"];?/i);
|
const match = html.match(/var\s+pxl\s*=\s*['"]([^'"]+)['"];?/i);
|
||||||
return match?.[1] || "";
|
return match?.[1] || "";
|
||||||
@@ -44,10 +59,8 @@ export async function hubcloudExtractor(
|
|||||||
const vLinkRes = await axios(`${link}`, { headers, signal });
|
const vLinkRes = await axios(`${link}`, { headers, signal });
|
||||||
const vLinkText = vLinkRes.data;
|
const vLinkText = vLinkRes.data;
|
||||||
const $vLink = cheerio.load(vLinkText);
|
const $vLink = cheerio.load(vLinkText);
|
||||||
const vLinkRedirect = vLinkText.match(/var\s+url\s*=\s*'([^']+)';/) || [];
|
|
||||||
let vcloudLink =
|
let vcloudLink =
|
||||||
hubcloudDecode(vLinkRedirect[1]?.split("r=")?.[1]) ||
|
extractUrlFromScript(vLinkText) ||
|
||||||
vLinkRedirect[1] ||
|
|
||||||
$vLink(".fa-file-download.fa-lg").parent().attr("href") ||
|
$vLink(".fa-file-download.fa-lg").parent().attr("href") ||
|
||||||
link;
|
link;
|
||||||
console.log("vcloudLink", vcloudLink);
|
console.log("vcloudLink", vcloudLink);
|
||||||
@@ -62,7 +75,7 @@ export async function hubcloudExtractor(
|
|||||||
});
|
});
|
||||||
const vcloudText = await vcloudRes.text();
|
const vcloudText = await vcloudRes.text();
|
||||||
const $ = cheerio.load(vcloudText);
|
const $ = cheerio.load(vcloudText);
|
||||||
// console.log('vcloudRes', $.text());
|
// console.log("vcloudRes", $.text());
|
||||||
|
|
||||||
const linkClass = $(".btn-success.btn-lg.h6,.btn-danger,.btn-secondary");
|
const linkClass = $(".btn-success.btn-lg.h6,.btn-danger,.btn-secondary");
|
||||||
for (const element of linkClass) {
|
for (const element of linkClass) {
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ export async function getStream({
|
|||||||
try {
|
try {
|
||||||
const streamLinks: Stream[] = [];
|
const streamLinks: Stream[] = [];
|
||||||
console.log("dotlink", link);
|
console.log("dotlink", link);
|
||||||
if (type === "movie") {
|
if (type === "movie" && !link.includes("cloud")) {
|
||||||
// vlink
|
// vlink
|
||||||
const dotlinkRes = await axios(`${link}`, { headers });
|
const dotlinkRes = await axios(`${link}`, { headers });
|
||||||
const dotlinkText = dotlinkRes.data;
|
const dotlinkText = dotlinkRes.data;
|
||||||
|
|||||||
@@ -37,13 +37,13 @@ export async function getStream({
|
|||||||
try {
|
try {
|
||||||
const streamLinks: Stream[] = [];
|
const streamLinks: Stream[] = [];
|
||||||
console.log("dotlink", link);
|
console.log("dotlink", link);
|
||||||
if (type === "movie") {
|
if (type === "movie" && !link.includes("cloud")) {
|
||||||
// vlink
|
// vlink
|
||||||
const dotlinkRes = await axios(`${link}`, { headers });
|
const dotlinkRes = await axios(`${link}`, { headers });
|
||||||
const dotlinkText = dotlinkRes.data;
|
const dotlinkText = dotlinkRes.data;
|
||||||
// console.log('dotlinkText', dotlinkText);
|
// console.log('dotlinkText', dotlinkText);
|
||||||
const vlink = dotlinkText.match(/<a\s+href="([^"]*cloud\.[^"]*)"/i) || [];
|
const vlink = dotlinkText.match(/<a\s+href="([^"]*cloud\.[^"]*)"/i) || [];
|
||||||
// console.log('vLink', vlink[1]);
|
console.log("vLink", vlink[1]);
|
||||||
link = vlink[1];
|
link = vlink[1];
|
||||||
|
|
||||||
// filepress link
|
// filepress link
|
||||||
|
|||||||
Reference in New Issue
Block a user