mirror of
https://gitlab.com/vyla-entertainment/sdk.git
synced 2026-11-19 16:47:24 -05:00
fixed cinecat and v1.30.0
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@vyla-entertainment/sdk",
|
||||
"version": "1.29.0",
|
||||
"version": "1.30.0",
|
||||
"scripts": {
|
||||
"test": "node test/index.js",
|
||||
"test:all": "node test/index.js all"
|
||||
|
||||
@@ -216,6 +216,25 @@ export const SOURCES = [
|
||||
}],
|
||||
},
|
||||
|
||||
{
|
||||
key: 'cinecat',
|
||||
label: 'CineCat',
|
||||
sourceFile: 'cinecat',
|
||||
proxyParam: 'cc',
|
||||
timeout: 25000,
|
||||
jitter: 500,
|
||||
retries: 2,
|
||||
multiUrl: false,
|
||||
dedicated: true,
|
||||
cdnHeaders: [{
|
||||
pattern: /zcdn3\.c3204a347-edge\.workers\.dev/i,
|
||||
headers: {
|
||||
Referer: 'https://cinecat.eu/',
|
||||
Origin: 'https://cinecat.eu',
|
||||
},
|
||||
}],
|
||||
},
|
||||
|
||||
{
|
||||
key: 'cinemaarmy',
|
||||
label: 'CinemaArmy',
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { fetchJson } from '../utils/helpers.js';
|
||||
|
||||
const BASE_URL = 'https://zcdn.bluevelvet.space';
|
||||
const BASE_URL = 'https://zcdn3.c3204a347-edge.workers.dev';
|
||||
|
||||
export async function getStream(args) {
|
||||
const { id, s, e } = args || {};
|
||||
@@ -15,8 +15,8 @@ export async function getStream(args) {
|
||||
if (!res || !res.ready || !res.url) return null;
|
||||
|
||||
const headers = {
|
||||
Referer: `${BASE_URL}/`,
|
||||
Origin: BASE_URL,
|
||||
Referer: 'https://cinecat.eu/',
|
||||
Origin: 'https://cinecat.eu',
|
||||
};
|
||||
|
||||
const allUrls = [{
|
||||
|
||||
Reference in New Issue
Block a user