@vyla-entertainment/sdk 1.17.0 → 1.19.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/README.md +5 -5
- package/package.json +1 -1
- package/src/config.js +187 -118
- package/src/sources/cinecat.js +19 -0
- package/src/sources/cinesrc.js +398 -0
- package/src/sources/cinezo.js +55 -0
- package/src/sources/cno.js +95 -0
- package/src/sources/flaxmovies.js +91 -103
- package/src/sources/hexa.js +54 -0
- package/src/sources/hyper.js +36 -0
- package/src/sources/kickassanime.js +125 -0
- package/src/sources/lmscript.js +53 -25
- package/src/sources/movy.js +161 -233
- package/src/sources/net79.js +56 -0
- package/src/sources/rivo.js +54 -0
- package/src/sources/thugtv.js +56 -55
- package/src/sources/vidora.js +62 -0
- package/src/sources/yapgrid.js +63 -0
- package/src/sources/yastream.js +30 -0
- package/src/sources/anihq.js +0 -124
- package/src/sources/anineko.js +0 -190
- package/src/sources/movienight.js +0 -117
- package/src/sources/vidgod.js +0 -147
- package/src/sources/vidnest.js +0 -79
package/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
# vyla/sdk
|
|
2
|
-
|
|
1
|
+
# vyla-entertainment/sdk
|
|
2
|
+
The Vyla SDK (@vyla-entertainment/sdk) is a server-side JavaScript/TypeScript package that provides direct access to Vyla's stream resolvers, health probes, download resolvers, and subtitle providers.
|
|
3
3
|
|
|
4
4
|
## Installing
|
|
5
5
|
To start, install VylaSDK through npm or pnpm:
|
|
@@ -13,13 +13,13 @@ pnpm install @vyla-entertainment/sdk
|
|
|
13
13
|
|
|
14
14
|
View our full documentation at https://docs.vyla.cc/sdk
|
|
15
15
|
|
|
16
|
-
# [DMCA](https://
|
|
16
|
+
# [DMCA](https://vyla.cc/misc/project/DMCA)
|
|
17
17
|
|
|
18
18
|
If your source is listed here, I sincerely apologize. I understand that its inclusion may be costing you a lot of money, and that was never my intention. Please contact me as soon as possible, and I'll remove it ASAP.
|
|
19
19
|
|
|
20
20
|
This is a small hobby project that I built for learning and personal interest, not for profit. I genuinely want to respect the wishes of source owners and will address any removal requests as quickly as I can.
|
|
21
21
|
|
|
22
|
-
This project is developed and maintained by [Vyla Entertainment](https://
|
|
22
|
+
This project is developed and maintained by [Vyla Entertainment](https://gitlab.com/vyla-entertainment) (@vyla-entertainment).
|
|
23
23
|
|
|
24
24
|
Original work and core authorship:
|
|
25
25
|
|
|
@@ -28,4 +28,4 @@ Original work and core authorship:
|
|
|
28
28
|
[@GavinGoGaming](https://github.com/GavinGoGaming)
|
|
29
29
|
|
|
30
30
|
Full credits and acknowledgements:
|
|
31
|
-
https://
|
|
31
|
+
https://vyla.cc/misc/project/credit
|
package/package.json
CHANGED
package/src/config.js
CHANGED
|
@@ -56,50 +56,6 @@ export const SOURCES = [
|
|
|
56
56
|
}],
|
|
57
57
|
},
|
|
58
58
|
|
|
59
|
-
{
|
|
60
|
-
key: 'anihq-sub',
|
|
61
|
-
label: 'AniHQ (Sub)',
|
|
62
|
-
sourceFile: 'anihq',
|
|
63
|
-
proxyParam: 'ahsub',
|
|
64
|
-
timeout: 25000,
|
|
65
|
-
jitter: 500,
|
|
66
|
-
retries: 2,
|
|
67
|
-
multiUrl: true,
|
|
68
|
-
skipProxy: true
|
|
69
|
-
},
|
|
70
|
-
|
|
71
|
-
{
|
|
72
|
-
key: 'anihq-dub',
|
|
73
|
-
label: 'AniHQ (Dub)',
|
|
74
|
-
sourceFile: 'anihq',
|
|
75
|
-
proxyParam: 'ahdub',
|
|
76
|
-
timeout: 25000,
|
|
77
|
-
jitter: 500,
|
|
78
|
-
retries: 2,
|
|
79
|
-
multiUrl: true,
|
|
80
|
-
skipProxy: true
|
|
81
|
-
},
|
|
82
|
-
|
|
83
|
-
{
|
|
84
|
-
key: 'anineko-sub',
|
|
85
|
-
sourceFile: 'anineko',
|
|
86
|
-
label: 'AniNeko (Sub)',
|
|
87
|
-
proxyParam: 'anksub',
|
|
88
|
-
timeout: 25000,
|
|
89
|
-
jitter: 500,
|
|
90
|
-
retries: 2
|
|
91
|
-
},
|
|
92
|
-
|
|
93
|
-
{
|
|
94
|
-
key: 'anineko-dub',
|
|
95
|
-
sourceFile: 'anineko',
|
|
96
|
-
label: 'AniNeko (Dub)',
|
|
97
|
-
proxyParam: 'ankdub',
|
|
98
|
-
timeout: 25000,
|
|
99
|
-
jitter: 500,
|
|
100
|
-
retries: 2
|
|
101
|
-
},
|
|
102
|
-
|
|
103
59
|
{
|
|
104
60
|
key: 'bcine',
|
|
105
61
|
label: 'Bcine',
|
|
@@ -137,6 +93,62 @@ export const SOURCES = [
|
|
|
137
93
|
}],
|
|
138
94
|
},
|
|
139
95
|
|
|
96
|
+
{
|
|
97
|
+
key: 'cinesrc',
|
|
98
|
+
label: 'CineSrc',
|
|
99
|
+
sourceFile: 'cinesrc',
|
|
100
|
+
proxyParam: 'cs',
|
|
101
|
+
timeout: 35000,
|
|
102
|
+
jitter: 500,
|
|
103
|
+
retries: 2,
|
|
104
|
+
multiUrl: true,
|
|
105
|
+
skipProxy: true,
|
|
106
|
+
cdnHeaders: [{
|
|
107
|
+
pattern: /cinesrc\.st/i,
|
|
108
|
+
headers: {
|
|
109
|
+
Referer: 'https://cinesrc.st/',
|
|
110
|
+
Origin: 'https://cinesrc.st',
|
|
111
|
+
},
|
|
112
|
+
}],
|
|
113
|
+
},
|
|
114
|
+
|
|
115
|
+
{
|
|
116
|
+
key: 'cinezo',
|
|
117
|
+
label: 'Cinezo',
|
|
118
|
+
sourceFile: 'cinezo',
|
|
119
|
+
proxyParam: 'czo',
|
|
120
|
+
timeout: 25000,
|
|
121
|
+
jitter: 500,
|
|
122
|
+
retries: 2,
|
|
123
|
+
multiUrl: true,
|
|
124
|
+
cdnHeaders: [{
|
|
125
|
+
pattern: /yenime\.net|flikhub\.net|hakunaymatata\.com/i,
|
|
126
|
+
headers: {
|
|
127
|
+
Referer: 'https://player.cinezo.live/',
|
|
128
|
+
Origin: 'https://player.cinezo.live',
|
|
129
|
+
},
|
|
130
|
+
}],
|
|
131
|
+
},
|
|
132
|
+
|
|
133
|
+
{
|
|
134
|
+
key: 'cno',
|
|
135
|
+
label: 'Cno',
|
|
136
|
+
sourceFile: 'cno',
|
|
137
|
+
proxyParam: 'cno',
|
|
138
|
+
timeout: 25000,
|
|
139
|
+
jitter: 300,
|
|
140
|
+
retries: 1,
|
|
141
|
+
multiUrl: true,
|
|
142
|
+
skipProxy: true,
|
|
143
|
+
cdnHeaders: [{
|
|
144
|
+
pattern: /cno\.to/i,
|
|
145
|
+
headers: {
|
|
146
|
+
Referer: 'https://cno.to/',
|
|
147
|
+
Origin: 'https://cno.to',
|
|
148
|
+
},
|
|
149
|
+
}],
|
|
150
|
+
},
|
|
151
|
+
|
|
140
152
|
{
|
|
141
153
|
key: 'dulo',
|
|
142
154
|
label: 'Dulo',
|
|
@@ -161,18 +173,18 @@ export const SOURCES = [
|
|
|
161
173
|
label: 'FlaxMovies',
|
|
162
174
|
sourceFile: 'flaxmovies',
|
|
163
175
|
proxyParam: 'fx',
|
|
164
|
-
timeout:
|
|
176
|
+
timeout: 25000,
|
|
165
177
|
jitter: 500,
|
|
166
178
|
retries: 2,
|
|
167
179
|
multiUrl: true,
|
|
168
180
|
skipProxy: true,
|
|
169
181
|
cdnHeaders: [{
|
|
170
|
-
pattern: /
|
|
182
|
+
pattern: /themoviebox\.uk|vidrock\.|orbitingdreams\.xyz|fastcloud\.live|deton444eik\.com/i,
|
|
171
183
|
headers: {
|
|
172
|
-
Referer: 'https://
|
|
173
|
-
Origin: 'https://
|
|
184
|
+
Referer: 'https://themoviebox.uk/',
|
|
185
|
+
Origin: 'https://themoviebox.uk',
|
|
174
186
|
},
|
|
175
|
-
}
|
|
187
|
+
}],
|
|
176
188
|
},
|
|
177
189
|
|
|
178
190
|
{
|
|
@@ -187,6 +199,62 @@ export const SOURCES = [
|
|
|
187
199
|
skipProxy: true,
|
|
188
200
|
},
|
|
189
201
|
|
|
202
|
+
{
|
|
203
|
+
key: 'hexa',
|
|
204
|
+
label: 'Hexa',
|
|
205
|
+
sourceFile: 'hexa',
|
|
206
|
+
proxyParam: 'hx',
|
|
207
|
+
timeout: 30000,
|
|
208
|
+
jitter: 500,
|
|
209
|
+
retries: 2,
|
|
210
|
+
multiUrl: true,
|
|
211
|
+
skipProxy: true,
|
|
212
|
+
cdnHeaders: [{
|
|
213
|
+
pattern: /hexa\.su|flixer\.su/i,
|
|
214
|
+
headers: {
|
|
215
|
+
Referer: 'https://hexa.su/',
|
|
216
|
+
Origin: 'https://hexa.su',
|
|
217
|
+
},
|
|
218
|
+
}],
|
|
219
|
+
},
|
|
220
|
+
|
|
221
|
+
{
|
|
222
|
+
key: 'kickassanime',
|
|
223
|
+
label: 'KickAssAnime',
|
|
224
|
+
sourceFile: 'kickassanime',
|
|
225
|
+
proxyParam: 'kaa',
|
|
226
|
+
timeout: 25000,
|
|
227
|
+
jitter: 500,
|
|
228
|
+
retries: 2,
|
|
229
|
+
multiUrl: true,
|
|
230
|
+
skipProxy: true,
|
|
231
|
+
cdnHeaders: [{
|
|
232
|
+
pattern: /krussdomi\.com/i,
|
|
233
|
+
headers: {
|
|
234
|
+
Referer: 'https://kaa.lt/',
|
|
235
|
+
Origin: 'https://kaa.lt',
|
|
236
|
+
},
|
|
237
|
+
}],
|
|
238
|
+
},
|
|
239
|
+
|
|
240
|
+
{
|
|
241
|
+
key: 'hyper',
|
|
242
|
+
label: 'Hyper',
|
|
243
|
+
sourceFile: 'hyper',
|
|
244
|
+
proxyParam: 'hyp',
|
|
245
|
+
timeout: 25000,
|
|
246
|
+
jitter: 500,
|
|
247
|
+
retries: 2,
|
|
248
|
+
multiUrl: true,
|
|
249
|
+
cdnHeaders: [{
|
|
250
|
+
pattern: /hakunaymatata\.com/i,
|
|
251
|
+
headers: {
|
|
252
|
+
Referer: 'https://mzfi.me/',
|
|
253
|
+
Origin: 'https://mzfi.me',
|
|
254
|
+
},
|
|
255
|
+
}],
|
|
256
|
+
},
|
|
257
|
+
|
|
190
258
|
{
|
|
191
259
|
key: 'kisskh',
|
|
192
260
|
label: 'KissKH',
|
|
@@ -241,25 +309,6 @@ export const SOURCES = [
|
|
|
241
309
|
}],
|
|
242
310
|
},
|
|
243
311
|
|
|
244
|
-
{
|
|
245
|
-
key: 'movienight',
|
|
246
|
-
label: 'MovieNight',
|
|
247
|
-
sourceFile: 'movienight',
|
|
248
|
-
proxyParam: 'mn',
|
|
249
|
-
timeout: 20000,
|
|
250
|
-
jitter: 500,
|
|
251
|
-
retries: 2,
|
|
252
|
-
multiUrl: true,
|
|
253
|
-
skipProxy: true,
|
|
254
|
-
cdnHeaders: [{
|
|
255
|
-
pattern: /movienig\.ht/i,
|
|
256
|
-
headers: {
|
|
257
|
-
Referer: 'https://movienig.ht/',
|
|
258
|
-
Origin: 'https://movienig.ht',
|
|
259
|
-
},
|
|
260
|
-
}],
|
|
261
|
-
},
|
|
262
|
-
|
|
263
312
|
{
|
|
264
313
|
key: 'movy',
|
|
265
314
|
label: 'Movy',
|
|
@@ -271,29 +320,29 @@ export const SOURCES = [
|
|
|
271
320
|
multiUrl: true,
|
|
272
321
|
skipProxy: true,
|
|
273
322
|
cdnHeaders: [{
|
|
274
|
-
pattern: /wecollege\.net|movy\.
|
|
323
|
+
pattern: /wecollege\.net|movy\.sx|goldenkite\.top/i,
|
|
275
324
|
headers: {
|
|
276
|
-
Referer: 'https://www.movy.
|
|
277
|
-
Origin: 'https://www.movy.
|
|
325
|
+
Referer: 'https://www.movy.sx/',
|
|
326
|
+
Origin: 'https://www.movy.sx',
|
|
278
327
|
},
|
|
279
328
|
}],
|
|
280
329
|
},
|
|
281
330
|
|
|
282
331
|
{
|
|
283
|
-
key: '
|
|
284
|
-
label: '
|
|
285
|
-
sourceFile: '
|
|
286
|
-
proxyParam: '
|
|
332
|
+
key: 'net79',
|
|
333
|
+
label: 'Net79',
|
|
334
|
+
sourceFile: 'net79',
|
|
335
|
+
proxyParam: 'n79',
|
|
287
336
|
timeout: 25000,
|
|
288
337
|
jitter: 500,
|
|
289
338
|
retries: 2,
|
|
290
339
|
multiUrl: true,
|
|
291
340
|
skipProxy: true,
|
|
292
341
|
cdnHeaders: [{
|
|
293
|
-
pattern: /
|
|
342
|
+
pattern: /hakunaymatata\.com/i,
|
|
294
343
|
headers: {
|
|
295
|
-
Referer: 'https://
|
|
296
|
-
Origin: 'https://
|
|
344
|
+
Referer: 'https://net79.cc/',
|
|
345
|
+
Origin: 'https://net79.cc',
|
|
297
346
|
},
|
|
298
347
|
}],
|
|
299
348
|
},
|
|
@@ -344,6 +393,24 @@ export const SOURCES = [
|
|
|
344
393
|
multiUrl: true,
|
|
345
394
|
},
|
|
346
395
|
|
|
396
|
+
{
|
|
397
|
+
key: 'rivo',
|
|
398
|
+
label: 'Rivo',
|
|
399
|
+
sourceFile: 'rivo',
|
|
400
|
+
proxyParam: 'rv',
|
|
401
|
+
timeout: 25000,
|
|
402
|
+
jitter: 500,
|
|
403
|
+
retries: 2,
|
|
404
|
+
multiUrl: true,
|
|
405
|
+
cdnHeaders: [{
|
|
406
|
+
pattern: /rivo\.st/i,
|
|
407
|
+
headers: {
|
|
408
|
+
Referer: 'https://f.rivo.st/',
|
|
409
|
+
Origin: 'https://f.rivo.st',
|
|
410
|
+
},
|
|
411
|
+
}],
|
|
412
|
+
},
|
|
413
|
+
|
|
347
414
|
{
|
|
348
415
|
key: 'streamaggregator',
|
|
349
416
|
label: 'StreamAggregator',
|
|
@@ -374,7 +441,7 @@ export const SOURCES = [
|
|
|
374
441
|
multiUrl: true,
|
|
375
442
|
skipProxy: true,
|
|
376
443
|
cdnHeaders: [{
|
|
377
|
-
pattern: /thugtv\.online|
|
|
444
|
+
pattern: /thugtv\.online|fcxmb\.com|hscow\.com/i,
|
|
378
445
|
headers: {
|
|
379
446
|
Referer: 'https://thugtv.online/',
|
|
380
447
|
Origin: 'https://thugtv.online',
|
|
@@ -415,15 +482,22 @@ export const SOURCES = [
|
|
|
415
482
|
},
|
|
416
483
|
|
|
417
484
|
{
|
|
418
|
-
key: '
|
|
419
|
-
label: '
|
|
420
|
-
sourceFile: '
|
|
421
|
-
proxyParam: '
|
|
485
|
+
key: 'vidora',
|
|
486
|
+
label: 'Vidora',
|
|
487
|
+
sourceFile: 'vidora',
|
|
488
|
+
proxyParam: 'vdra',
|
|
422
489
|
timeout: 25000,
|
|
423
490
|
jitter: 500,
|
|
424
491
|
retries: 2,
|
|
425
492
|
multiUrl: true,
|
|
426
493
|
skipProxy: true,
|
|
494
|
+
cdnHeaders: [{
|
|
495
|
+
pattern: /rousav\.tech|vidbolt\.xyz|vidrift\.in|goldenkite\.top|ravok\.buzz/i,
|
|
496
|
+
headers: {
|
|
497
|
+
Referer: 'https://vidora-3l2w.onrender.com/',
|
|
498
|
+
Origin: 'https://vidora-3l2w.onrender.com',
|
|
499
|
+
},
|
|
500
|
+
}],
|
|
427
501
|
},
|
|
428
502
|
|
|
429
503
|
{
|
|
@@ -438,41 +512,6 @@ export const SOURCES = [
|
|
|
438
512
|
multiUrl: true,
|
|
439
513
|
},
|
|
440
514
|
|
|
441
|
-
{
|
|
442
|
-
key: 'vidnest',
|
|
443
|
-
label: 'VidNest',
|
|
444
|
-
sourceFile: 'vidnest',
|
|
445
|
-
proxyParam: 'vdn',
|
|
446
|
-
timeout: 20000,
|
|
447
|
-
retries: 1,
|
|
448
|
-
jitter: 0,
|
|
449
|
-
multiUrl: true,
|
|
450
|
-
},
|
|
451
|
-
|
|
452
|
-
{
|
|
453
|
-
key: 'vidnest-sub',
|
|
454
|
-
label: 'VidNest (Sub)',
|
|
455
|
-
sourceFile: 'vidnest',
|
|
456
|
-
proxyParam: 'vdn',
|
|
457
|
-
timeout: 20000,
|
|
458
|
-
retries: 1,
|
|
459
|
-
jitter: 0,
|
|
460
|
-
multiUrl: true,
|
|
461
|
-
skipProxy: true,
|
|
462
|
-
},
|
|
463
|
-
|
|
464
|
-
{
|
|
465
|
-
key: 'vidnest-dub',
|
|
466
|
-
label: 'VidNest (Dub)',
|
|
467
|
-
sourceFile: 'vidnest',
|
|
468
|
-
proxyParam: 'vdn',
|
|
469
|
-
timeout: 20000,
|
|
470
|
-
retries: 1,
|
|
471
|
-
jitter: 0,
|
|
472
|
-
multiUrl: true,
|
|
473
|
-
skipProxy: true,
|
|
474
|
-
},
|
|
475
|
-
|
|
476
515
|
{
|
|
477
516
|
key: 'vidrock',
|
|
478
517
|
label: 'VidRock',
|
|
@@ -588,6 +627,36 @@ export const SOURCES = [
|
|
|
588
627
|
}],
|
|
589
628
|
},
|
|
590
629
|
|
|
630
|
+
{
|
|
631
|
+
key: 'yapgrid',
|
|
632
|
+
label: 'YapGrid',
|
|
633
|
+
sourceFile: 'yapgrid',
|
|
634
|
+
proxyParam: 'yap',
|
|
635
|
+
timeout: 25000,
|
|
636
|
+
jitter: 500,
|
|
637
|
+
retries: 2,
|
|
638
|
+
multiUrl: true,
|
|
639
|
+
skipProxy: true,
|
|
640
|
+
cdnHeaders: [{
|
|
641
|
+
pattern: /yapgrid\.com|embedwave\.cc/i,
|
|
642
|
+
headers: {
|
|
643
|
+
Referer: 'https://yapgrid.com/',
|
|
644
|
+
Origin: 'https://yapgrid.com',
|
|
645
|
+
},
|
|
646
|
+
}],
|
|
647
|
+
},
|
|
648
|
+
|
|
649
|
+
{
|
|
650
|
+
key: 'yastream',
|
|
651
|
+
label: 'YaStream',
|
|
652
|
+
sourceFile: 'yastream',
|
|
653
|
+
proxyParam: 'ya',
|
|
654
|
+
timeout: 25000,
|
|
655
|
+
jitter: 500,
|
|
656
|
+
retries: 2,
|
|
657
|
+
multiUrl: true,
|
|
658
|
+
},
|
|
659
|
+
|
|
591
660
|
];
|
|
592
661
|
|
|
593
662
|
export const HEALTH_PROBE_ID = '155';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { fetchJson } from '../utils/helpers.js';
|
|
2
|
+
|
|
3
|
+
export async function getStream({ id, s, e }) {
|
|
4
|
+
const isTv = s != null && e != null;
|
|
5
|
+
const url = isTv
|
|
6
|
+
? `https://zcdn.bluevelvet.space/cdn?tmdb=${id}&type=tv&season=${s}&episode=${e}`
|
|
7
|
+
: `https://zcdn.bluevelvet.space/cdn?tmdb=${id}&type=movie`;
|
|
8
|
+
|
|
9
|
+
const res = await fetchJson(url);
|
|
10
|
+
if (!res || !res.ready || !res.url) return null;
|
|
11
|
+
|
|
12
|
+
return {
|
|
13
|
+
url: res.url,
|
|
14
|
+
headers: {
|
|
15
|
+
Referer: 'https://zcdn.bluevelvet.space/',
|
|
16
|
+
Origin: 'https://zcdn.bluevelvet.space',
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
}
|