@vyla-entertainment/sdk 1.13.0 → 1.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/config.js +21 -0
- package/src/sources/vidcore.js +123 -0
- package/src/sources/vidfast.js +123 -0
- package/src/sources/vidup.js +102 -58
package/package.json
CHANGED
package/src/config.js
CHANGED
|
@@ -304,6 +304,27 @@ export const SOURCES = [
|
|
|
304
304
|
multiUrl: true
|
|
305
305
|
},
|
|
306
306
|
|
|
307
|
+
{
|
|
308
|
+
key: 'vidcore',
|
|
309
|
+
label: 'VidCore',
|
|
310
|
+
sourceFile: 'vidcore',
|
|
311
|
+
proxyParam: 'vc',
|
|
312
|
+
timeout: 35000,
|
|
313
|
+
jitter: 500,
|
|
314
|
+
retries: 1,
|
|
315
|
+
multiUrl: true,
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
key: 'vidfast',
|
|
319
|
+
label: 'VidFast',
|
|
320
|
+
sourceFile: 'vidfast',
|
|
321
|
+
proxyParam: 'vf',
|
|
322
|
+
timeout: 35000,
|
|
323
|
+
jitter: 500,
|
|
324
|
+
retries: 1,
|
|
325
|
+
multiUrl: true,
|
|
326
|
+
},
|
|
327
|
+
|
|
307
328
|
{
|
|
308
329
|
key: 'vidgod',
|
|
309
330
|
label: 'VidGod',
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { getUA } from '../utils/helpers.js';
|
|
2
|
+
|
|
3
|
+
const BASE_URL = 'https://vidcore.io';
|
|
4
|
+
const API = 'https://enc-dec.app/api';
|
|
5
|
+
|
|
6
|
+
export async function getStream({ id, s, e }) {
|
|
7
|
+
const isTv = Boolean(s && e);
|
|
8
|
+
const targetUrl = isTv
|
|
9
|
+
? `${BASE_URL}/tv/${id}/${s}/${e}/`
|
|
10
|
+
: `${BASE_URL}/movie/${id}`;
|
|
11
|
+
|
|
12
|
+
const ua = getUA();
|
|
13
|
+
const baseHeaders = {
|
|
14
|
+
'User-Agent': ua,
|
|
15
|
+
'Referer': `${BASE_URL}/`,
|
|
16
|
+
'X-Requested-With': 'XMLHttpRequest',
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
try {
|
|
20
|
+
const pageRes = await fetch(targetUrl, {
|
|
21
|
+
headers: { 'User-Agent': ua },
|
|
22
|
+
signal: AbortSignal.timeout(10000),
|
|
23
|
+
});
|
|
24
|
+
if (!pageRes.ok) return null;
|
|
25
|
+
const html = await pageRes.text();
|
|
26
|
+
|
|
27
|
+
const match = html.match(/\\"(?:en|token)\\":\\"(.*?)\\"/);
|
|
28
|
+
if (!match || !match[1]) return null;
|
|
29
|
+
const enToken = match[1];
|
|
30
|
+
|
|
31
|
+
const s1Res = await fetch(`${API}/enc-vidcore?text=${encodeURIComponent(enToken)}&stage=1`, {
|
|
32
|
+
signal: AbortSignal.timeout(8000),
|
|
33
|
+
});
|
|
34
|
+
const s1Data = await s1Res.json();
|
|
35
|
+
if (s1Data?.status !== 200 || !s1Data?.result?.stage1) return null;
|
|
36
|
+
|
|
37
|
+
const token1 = s1Data.result.token;
|
|
38
|
+
const stage1Url = s1Data.result.stage1;
|
|
39
|
+
|
|
40
|
+
const post1Res = await fetch(stage1Url, {
|
|
41
|
+
method: 'POST',
|
|
42
|
+
headers: { ...baseHeaders, 'X-CSRF-Token': token1 },
|
|
43
|
+
signal: AbortSignal.timeout(10000),
|
|
44
|
+
});
|
|
45
|
+
if (!post1Res.ok) return null;
|
|
46
|
+
const stage1Text = await post1Res.text();
|
|
47
|
+
|
|
48
|
+
const s2Res = await fetch(`${API}/enc-vidcore?text=${encodeURIComponent(stage1Text)}&stage=2`, {
|
|
49
|
+
signal: AbortSignal.timeout(8000),
|
|
50
|
+
});
|
|
51
|
+
const s2Data = await s2Res.json();
|
|
52
|
+
if (s2Data?.status !== 200 || !s2Data?.result?.servers) return null;
|
|
53
|
+
|
|
54
|
+
const { servers: serversUrl, stream: streamBaseUrl, token: token2 } = s2Data.result;
|
|
55
|
+
const currentHeaders = { ...baseHeaders, 'X-CSRF-Token': token2 };
|
|
56
|
+
|
|
57
|
+
const serversRes = await fetch(serversUrl, {
|
|
58
|
+
method: 'POST',
|
|
59
|
+
headers: currentHeaders,
|
|
60
|
+
signal: AbortSignal.timeout(10000),
|
|
61
|
+
});
|
|
62
|
+
if (!serversRes.ok) return null;
|
|
63
|
+
const serversEncrypted = await serversRes.text();
|
|
64
|
+
|
|
65
|
+
const decServersRes = await fetch(`${API}/dec-vidcore`, {
|
|
66
|
+
method: 'POST',
|
|
67
|
+
headers: { 'Content-Type': 'application/json' },
|
|
68
|
+
body: JSON.stringify({ text: serversEncrypted }),
|
|
69
|
+
signal: AbortSignal.timeout(8000),
|
|
70
|
+
});
|
|
71
|
+
const decServersData = await decServersRes.json();
|
|
72
|
+
if (decServersData?.status !== 200 || !Array.isArray(decServersData.result)) return null;
|
|
73
|
+
|
|
74
|
+
const allUrls = [];
|
|
75
|
+
|
|
76
|
+
for (const server of decServersData.result) {
|
|
77
|
+
if (!server?.data) continue;
|
|
78
|
+
try {
|
|
79
|
+
const streamUrl = `${streamBaseUrl}/${server.data}`;
|
|
80
|
+
const streamEncRes = await fetch(streamUrl, {
|
|
81
|
+
method: 'POST',
|
|
82
|
+
headers: currentHeaders,
|
|
83
|
+
signal: AbortSignal.timeout(8000),
|
|
84
|
+
});
|
|
85
|
+
if (!streamEncRes.ok) continue;
|
|
86
|
+
const streamEncText = await streamEncRes.text();
|
|
87
|
+
|
|
88
|
+
const decStreamRes = await fetch(`${API}/dec-vidcore`, {
|
|
89
|
+
method: 'POST',
|
|
90
|
+
headers: { 'Content-Type': 'application/json' },
|
|
91
|
+
body: JSON.stringify({ text: streamEncText }),
|
|
92
|
+
signal: AbortSignal.timeout(8000),
|
|
93
|
+
});
|
|
94
|
+
const decStreamData = await decStreamRes.json();
|
|
95
|
+
if (decStreamData?.status !== 200 || !decStreamData.result) continue;
|
|
96
|
+
|
|
97
|
+
const streamResult = decStreamData.result;
|
|
98
|
+
const resultUrl = typeof streamResult === 'string' ? streamResult : streamResult?.url || streamResult?.file;
|
|
99
|
+
|
|
100
|
+
if (typeof resultUrl === 'string' && resultUrl.startsWith('http')) {
|
|
101
|
+
allUrls.push({
|
|
102
|
+
url: resultUrl,
|
|
103
|
+
label: server.name || server.title || 'VidCore',
|
|
104
|
+
headers: {
|
|
105
|
+
'User-Agent': ua,
|
|
106
|
+
'Referer': `${BASE_URL}/`,
|
|
107
|
+
},
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
} catch { }
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
if (allUrls.length === 0) return null;
|
|
114
|
+
|
|
115
|
+
return {
|
|
116
|
+
url: allUrls[0].url,
|
|
117
|
+
allUrls,
|
|
118
|
+
headers: allUrls[0].headers,
|
|
119
|
+
};
|
|
120
|
+
} catch {
|
|
121
|
+
return null;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { getUA } from '../utils/helpers.js';
|
|
2
|
+
|
|
3
|
+
const BASE_URL = 'https://vidfast.vc';
|
|
4
|
+
const API = 'https://enc-dec.app/api';
|
|
5
|
+
|
|
6
|
+
export async function getStream({ id, s, e }) {
|
|
7
|
+
const isTv = Boolean(s && e);
|
|
8
|
+
const targetUrl = isTv
|
|
9
|
+
? `${BASE_URL}/tv/${id}/${s}/${e}/`
|
|
10
|
+
: `${BASE_URL}/movie/${id}`;
|
|
11
|
+
|
|
12
|
+
const ua = getUA();
|
|
13
|
+
const baseHeaders = {
|
|
14
|
+
'User-Agent': ua,
|
|
15
|
+
'Referer': `${BASE_URL}/`,
|
|
16
|
+
'X-Requested-With': 'XMLHttpRequest',
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
try {
|
|
20
|
+
const pageRes = await fetch(targetUrl, {
|
|
21
|
+
headers: { 'User-Agent': ua },
|
|
22
|
+
signal: AbortSignal.timeout(10000),
|
|
23
|
+
});
|
|
24
|
+
if (!pageRes.ok) return null;
|
|
25
|
+
const html = await pageRes.text();
|
|
26
|
+
|
|
27
|
+
const match = html.match(/\\"(?:en|token)\\":\\"(.*?)\\"/);
|
|
28
|
+
if (!match || !match[1]) return null;
|
|
29
|
+
const enToken = match[1];
|
|
30
|
+
|
|
31
|
+
const s1Res = await fetch(`${API}/enc-vidfast?text=${encodeURIComponent(enToken)}&stage=1`, {
|
|
32
|
+
signal: AbortSignal.timeout(8000),
|
|
33
|
+
});
|
|
34
|
+
const s1Data = await s1Res.json();
|
|
35
|
+
if (s1Data?.status !== 200 || !s1Data?.result?.stage1) return null;
|
|
36
|
+
|
|
37
|
+
const token1 = s1Data.result.token;
|
|
38
|
+
const stage1Url = s1Data.result.stage1;
|
|
39
|
+
|
|
40
|
+
const post1Res = await fetch(stage1Url, {
|
|
41
|
+
method: 'POST',
|
|
42
|
+
headers: { ...baseHeaders, 'X-CSRF-Token': token1 },
|
|
43
|
+
signal: AbortSignal.timeout(10000),
|
|
44
|
+
});
|
|
45
|
+
if (!post1Res.ok) return null;
|
|
46
|
+
const stage1Text = await post1Res.text();
|
|
47
|
+
|
|
48
|
+
const s2Res = await fetch(`${API}/enc-vidfast?text=${encodeURIComponent(stage1Text)}&stage=2`, {
|
|
49
|
+
signal: AbortSignal.timeout(8000),
|
|
50
|
+
});
|
|
51
|
+
const s2Data = await s2Res.json();
|
|
52
|
+
if (s2Data?.status !== 200 || !s2Data?.result?.servers) return null;
|
|
53
|
+
|
|
54
|
+
const { servers: serversUrl, stream: streamBaseUrl, token: token2 } = s2Data.result;
|
|
55
|
+
const currentHeaders = { ...baseHeaders, 'X-CSRF-Token': token2 };
|
|
56
|
+
|
|
57
|
+
const serversRes = await fetch(serversUrl, {
|
|
58
|
+
method: 'POST',
|
|
59
|
+
headers: currentHeaders,
|
|
60
|
+
signal: AbortSignal.timeout(10000),
|
|
61
|
+
});
|
|
62
|
+
if (!serversRes.ok) return null;
|
|
63
|
+
const serversEncrypted = await serversRes.text();
|
|
64
|
+
|
|
65
|
+
const decServersRes = await fetch(`${API}/dec-vidfast`, {
|
|
66
|
+
method: 'POST',
|
|
67
|
+
headers: { 'Content-Type': 'application/json' },
|
|
68
|
+
body: JSON.stringify({ text: serversEncrypted }),
|
|
69
|
+
signal: AbortSignal.timeout(8000),
|
|
70
|
+
});
|
|
71
|
+
const decServersData = await decServersRes.json();
|
|
72
|
+
if (decServersData?.status !== 200 || !Array.isArray(decServersData.result)) return null;
|
|
73
|
+
|
|
74
|
+
const allUrls = [];
|
|
75
|
+
|
|
76
|
+
for (const server of decServersData.result) {
|
|
77
|
+
if (!server?.data) continue;
|
|
78
|
+
try {
|
|
79
|
+
const streamUrl = `${streamBaseUrl}/${server.data}`;
|
|
80
|
+
const streamEncRes = await fetch(streamUrl, {
|
|
81
|
+
method: 'POST',
|
|
82
|
+
headers: currentHeaders,
|
|
83
|
+
signal: AbortSignal.timeout(8000),
|
|
84
|
+
});
|
|
85
|
+
if (!streamEncRes.ok) continue;
|
|
86
|
+
const streamEncText = await streamEncRes.text();
|
|
87
|
+
|
|
88
|
+
const decStreamRes = await fetch(`${API}/dec-vidfast`, {
|
|
89
|
+
method: 'POST',
|
|
90
|
+
headers: { 'Content-Type': 'application/json' },
|
|
91
|
+
body: JSON.stringify({ text: streamEncText }),
|
|
92
|
+
signal: AbortSignal.timeout(8000),
|
|
93
|
+
});
|
|
94
|
+
const decStreamData = await decStreamRes.json();
|
|
95
|
+
if (decStreamData?.status !== 200 || !decStreamData.result) continue;
|
|
96
|
+
|
|
97
|
+
const streamResult = decStreamData.result;
|
|
98
|
+
const resultUrl = typeof streamResult === 'string' ? streamResult : streamResult?.url || streamResult?.file;
|
|
99
|
+
|
|
100
|
+
if (typeof resultUrl === 'string' && resultUrl.startsWith('http')) {
|
|
101
|
+
allUrls.push({
|
|
102
|
+
url: resultUrl,
|
|
103
|
+
label: server.name || server.title || 'VidFast',
|
|
104
|
+
headers: {
|
|
105
|
+
'User-Agent': ua,
|
|
106
|
+
'Referer': `${BASE_URL}/`,
|
|
107
|
+
},
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
} catch { }
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
if (allUrls.length === 0) return null;
|
|
114
|
+
|
|
115
|
+
return {
|
|
116
|
+
url: allUrls[0].url,
|
|
117
|
+
allUrls,
|
|
118
|
+
headers: allUrls[0].headers,
|
|
119
|
+
};
|
|
120
|
+
} catch {
|
|
121
|
+
return null;
|
|
122
|
+
}
|
|
123
|
+
}
|
package/src/sources/vidup.js
CHANGED
|
@@ -1,79 +1,123 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { getUA } from '../utils/helpers.js';
|
|
2
2
|
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
|
|
3
|
+
const BASE_URL = 'https://vidup.to';
|
|
4
|
+
const API = 'https://enc-dec.app/api';
|
|
5
|
+
|
|
6
|
+
export async function getStream({ id, s, e }) {
|
|
7
|
+
const isTv = Boolean(s && e);
|
|
8
|
+
const targetUrl = isTv
|
|
9
|
+
? `${BASE_URL}/tv/${id}/${s}/${e}/`
|
|
10
|
+
: `${BASE_URL}/movie/${id}`;
|
|
11
|
+
|
|
12
|
+
const ua = getUA();
|
|
13
|
+
const baseHeaders = {
|
|
14
|
+
'User-Agent': ua,
|
|
15
|
+
'Referer': `${BASE_URL}/`,
|
|
16
|
+
'X-Requested-With': 'XMLHttpRequest',
|
|
17
|
+
};
|
|
6
18
|
|
|
7
|
-
async function getVidupMeta(id, s, e) {
|
|
8
19
|
try {
|
|
9
|
-
const
|
|
10
|
-
|
|
20
|
+
const pageRes = await fetch(targetUrl, {
|
|
21
|
+
headers: { 'User-Agent': ua },
|
|
22
|
+
signal: AbortSignal.timeout(10000),
|
|
23
|
+
});
|
|
24
|
+
if (!pageRes.ok) return null;
|
|
25
|
+
const html = await pageRes.text();
|
|
11
26
|
|
|
12
|
-
const match = html.match(/\\"(?:en|token)\\":\\"(.*?)\\"/)
|
|
13
|
-
if (!match
|
|
27
|
+
const match = html.match(/\\"(?:en|token)\\":\\"(.*?)\\"/);
|
|
28
|
+
if (!match || !match[1]) return null;
|
|
29
|
+
const enToken = match[1];
|
|
14
30
|
|
|
15
|
-
const
|
|
16
|
-
|
|
31
|
+
const s1Res = await fetch(`${API}/enc-vidup?text=${encodeURIComponent(enToken)}&stage=1`, {
|
|
32
|
+
signal: AbortSignal.timeout(8000),
|
|
33
|
+
});
|
|
34
|
+
const s1Data = await s1Res.json();
|
|
35
|
+
if (s1Data?.status !== 200 || !s1Data?.result?.stage1) return null;
|
|
17
36
|
|
|
18
|
-
const
|
|
19
|
-
const
|
|
37
|
+
const token1 = s1Data.result.token;
|
|
38
|
+
const stage1Url = s1Data.result.stage1;
|
|
20
39
|
|
|
21
|
-
const
|
|
22
|
-
const decServersData = await fetchJson(`${API_BASE}/dec-vidup`, {
|
|
40
|
+
const post1Res = await fetch(stage1Url, {
|
|
23
41
|
method: 'POST',
|
|
24
|
-
headers: { '
|
|
25
|
-
|
|
42
|
+
headers: { ...baseHeaders, 'X-CSRF-Token': token1 },
|
|
43
|
+
signal: AbortSignal.timeout(10000),
|
|
26
44
|
});
|
|
45
|
+
if (!post1Res.ok) return null;
|
|
46
|
+
const stage1Text = await post1Res.text();
|
|
27
47
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
export async function getStream({ id, s, e, server }) {
|
|
34
|
-
const meta = await getVidupMeta(id, s, e);
|
|
35
|
-
if (!meta?.servers?.length) return null;
|
|
48
|
+
const s2Res = await fetch(`${API}/enc-vidup?text=${encodeURIComponent(stage1Text)}&stage=2`, {
|
|
49
|
+
signal: AbortSignal.timeout(8000),
|
|
50
|
+
});
|
|
51
|
+
const s2Data = await s2Res.json();
|
|
52
|
+
if (s2Data?.status !== 200 || !s2Data?.result?.servers) return null;
|
|
36
53
|
|
|
37
|
-
|
|
38
|
-
|
|
54
|
+
const { servers: serversUrl, stream: streamBaseUrl, token: token2 } = s2Data.result;
|
|
55
|
+
const currentHeaders = { ...baseHeaders, 'X-CSRF-Token': token2 };
|
|
39
56
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
57
|
+
const serversRes = await fetch(serversUrl, {
|
|
58
|
+
method: 'POST',
|
|
59
|
+
headers: currentHeaders,
|
|
60
|
+
signal: AbortSignal.timeout(10000),
|
|
61
|
+
});
|
|
62
|
+
if (!serversRes.ok) return null;
|
|
63
|
+
const serversEncrypted = await serversRes.text();
|
|
45
64
|
|
|
46
|
-
|
|
47
|
-
const streamEncrypted = await fetchText(`${streamUrl}/${srv.data}`, { method: 'POST', headers: reqHeaders });
|
|
48
|
-
const decStreamData = await fetchJson(`${API_BASE}/dec-vidup`, {
|
|
65
|
+
const decServersRes = await fetch(`${API}/dec-vidup`, {
|
|
49
66
|
method: 'POST',
|
|
50
67
|
headers: { 'Content-Type': 'application/json' },
|
|
51
|
-
body: JSON.stringify({ text:
|
|
68
|
+
body: JSON.stringify({ text: serversEncrypted }),
|
|
69
|
+
signal: AbortSignal.timeout(8000),
|
|
52
70
|
});
|
|
53
|
-
|
|
54
|
-
if (
|
|
71
|
+
const decServersData = await decServersRes.json();
|
|
72
|
+
if (decServersData?.status !== 200 || !Array.isArray(decServersData.result)) return null;
|
|
73
|
+
|
|
74
|
+
const allUrls = [];
|
|
75
|
+
|
|
76
|
+
for (const server of decServersData.result) {
|
|
77
|
+
if (!server?.data) continue;
|
|
78
|
+
try {
|
|
79
|
+
const streamUrl = `${streamBaseUrl}/${server.data}`;
|
|
80
|
+
const streamEncRes = await fetch(streamUrl, {
|
|
81
|
+
method: 'POST',
|
|
82
|
+
headers: currentHeaders,
|
|
83
|
+
signal: AbortSignal.timeout(8000),
|
|
84
|
+
});
|
|
85
|
+
if (!streamEncRes.ok) continue;
|
|
86
|
+
const streamEncText = await streamEncRes.text();
|
|
87
|
+
|
|
88
|
+
const decStreamRes = await fetch(`${API}/dec-vidup`, {
|
|
89
|
+
method: 'POST',
|
|
90
|
+
headers: { 'Content-Type': 'application/json' },
|
|
91
|
+
body: JSON.stringify({ text: streamEncText }),
|
|
92
|
+
signal: AbortSignal.timeout(8000),
|
|
93
|
+
});
|
|
94
|
+
const decStreamData = await decStreamRes.json();
|
|
95
|
+
if (decStreamData?.status !== 200 || !decStreamData.result) continue;
|
|
96
|
+
|
|
97
|
+
const streamResult = decStreamData.result;
|
|
98
|
+
const resultUrl = typeof streamResult === 'string' ? streamResult : streamResult?.url || streamResult?.file;
|
|
99
|
+
|
|
100
|
+
if (typeof resultUrl === 'string' && resultUrl.startsWith('http')) {
|
|
101
|
+
allUrls.push({
|
|
102
|
+
url: resultUrl,
|
|
103
|
+
label: server.name || server.title || 'VidUp',
|
|
104
|
+
headers: {
|
|
105
|
+
'User-Agent': ua,
|
|
106
|
+
'Referer': `${BASE_URL}/`,
|
|
107
|
+
},
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
} catch { }
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
if (allUrls.length === 0) return null;
|
|
55
114
|
|
|
56
115
|
return {
|
|
57
|
-
url:
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
subtitles: (decStreamData.result.captions || []).map(c => ({
|
|
61
|
-
url: c.file,
|
|
62
|
-
lang: c.label || 'Unknown'
|
|
63
|
-
})),
|
|
64
|
-
headers: { ...HEADERS, 'Origin': DOMAIN }
|
|
116
|
+
url: allUrls[0].url,
|
|
117
|
+
allUrls,
|
|
118
|
+
headers: allUrls[0].headers,
|
|
65
119
|
};
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
const allUrls = [];
|
|
69
|
-
for (const r of results) {
|
|
70
|
-
if (r.status === 'fulfilled') allUrls.push(r.value);
|
|
120
|
+
} catch {
|
|
121
|
+
return null;
|
|
71
122
|
}
|
|
72
|
-
|
|
73
|
-
return allUrls.length ? { allUrls } : null;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
export async function getSources(args) {
|
|
77
|
-
const meta = await getVidupMeta(args.id, args.s, args.e);
|
|
78
|
-
return meta?.servers ? meta.servers.map(srv => `VidUp - ${srv.name}`) : [];
|
|
79
123
|
}
|