diff --git a/package-lock.json b/package-lock.json index a9fc324..4372b6c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@vyla-entertainment/sdk", - "version": "1.16.0", + "version": "1.18.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@vyla-entertainment/sdk", - "version": "1.16.0", + "version": "1.18.0", "license": "CC-BY-NC-4.0", "dependencies": { "node-tls-client": "^2.1.0" diff --git a/src/config.js b/src/config.js index ec10999..e2e1705 100644 --- a/src/config.js +++ b/src/config.js @@ -56,50 +56,6 @@ export const SOURCES = [ }], }, - { - key: 'anihq-sub', - label: 'AniHQ (Sub)', - sourceFile: 'anihq', - proxyParam: 'ahsub', - timeout: 25000, - jitter: 500, - retries: 2, - multiUrl: true, - skipProxy: true - }, - - { - key: 'anihq-dub', - label: 'AniHQ (Dub)', - sourceFile: 'anihq', - proxyParam: 'ahdub', - timeout: 25000, - jitter: 500, - retries: 2, - multiUrl: true, - skipProxy: true - }, - - { - key: 'anineko-sub', - sourceFile: 'anineko', - label: 'AniNeko (Sub)', - proxyParam: 'anksub', - timeout: 25000, - jitter: 500, - retries: 2 - }, - - { - key: 'anineko-dub', - sourceFile: 'anineko', - label: 'AniNeko (Dub)', - proxyParam: 'ankdub', - timeout: 25000, - jitter: 500, - retries: 2 - }, - { key: 'bcine', label: 'Bcine', @@ -118,25 +74,6 @@ export const SOURCES = [ }], }, - { - key: 'cinecat', - label: 'Cinecat', - sourceFile: 'cinecat', - proxyParam: 'ccat', - timeout: 25000, - jitter: 500, - retries: 2, - multiUrl: false, - skipProxy: true, - cdnHeaders: [{ - pattern: /bluevelvet\.space/i, - headers: { - Referer: 'https://zcdn.bluevelvet.space/', - Origin: 'https://zcdn.bluevelvet.space', - }, - }], - }, - { key: 'cinemaarmy', label: 'CinemaArmy', @@ -193,6 +130,25 @@ export const SOURCES = [ }], }, + { + key: 'cno', + label: 'Cno', + sourceFile: 'cno', + proxyParam: 'cno', + timeout: 25000, + jitter: 300, + retries: 1, + multiUrl: true, + skipProxy: true, + cdnHeaders: [{ + pattern: /cno\.to/i, + headers: { + Referer: 'https://cno.to/', + Origin: 'https://cno.to', + }, + }], + }, + { key: 'dulo', label: 'Dulo', @@ -217,18 +173,18 @@ export const SOURCES = [ label: 'FlaxMovies', sourceFile: 'flaxmovies', proxyParam: 'fx', - timeout: 20000, + timeout: 25000, jitter: 500, retries: 2, multiUrl: true, skipProxy: true, cdnHeaders: [{ - pattern: /flix2watch\.pro/i, + pattern: /themoviebox\.uk|vidrock\.|orbitingdreams\.xyz|fastcloud\.live|deton444eik\.com/i, headers: { - Referer: 'https://flaxmovies.xyz/', - Origin: 'https://flaxmovies.xyz', + Referer: 'https://themoviebox.uk/', + Origin: 'https://themoviebox.uk', }, - },], + }], }, { @@ -262,6 +218,25 @@ export const SOURCES = [ }], }, + { + key: 'kickassanime', + label: 'KickAssAnime', + sourceFile: 'kickassanime', + proxyParam: 'kaa', + timeout: 25000, + jitter: 500, + retries: 2, + multiUrl: true, + skipProxy: true, + cdnHeaders: [{ + pattern: /krussdomi\.com/i, + headers: { + Referer: 'https://kaa.lt/', + Origin: 'https://kaa.lt', + }, + }], + }, + { key: 'hyper', label: 'Hyper', @@ -334,25 +309,6 @@ export const SOURCES = [ }], }, - { - key: 'movienight', - label: 'MovieNight', - sourceFile: 'movienight', - proxyParam: 'mn', - timeout: 20000, - jitter: 500, - retries: 2, - multiUrl: true, - skipProxy: true, - cdnHeaders: [{ - pattern: /movienig\.ht/i, - headers: { - Referer: 'https://movienig.ht/', - Origin: 'https://movienig.ht', - }, - }], - }, - { key: 'movy', label: 'Movy', @@ -364,29 +320,29 @@ export const SOURCES = [ multiUrl: true, skipProxy: true, cdnHeaders: [{ - pattern: /wecollege\.net|movy\.bz/i, + pattern: /wecollege\.net|movy\.sx|goldenkite\.top/i, headers: { - Referer: 'https://www.movy.bz/', - Origin: 'https://www.movy.bz', + Referer: 'https://www.movy.sx/', + Origin: 'https://www.movy.sx', }, }], }, { - key: 'peestream', - label: 'PeeStream', - sourceFile: 'peestream', - proxyParam: 'pee', + key: 'net79', + label: 'Net79', + sourceFile: 'net79', + proxyParam: 'n79', timeout: 25000, jitter: 500, retries: 2, multiUrl: true, skipProxy: true, cdnHeaders: [{ - pattern: /peestream\.in/i, + pattern: /hakunaymatata\.com/i, headers: { - Referer: 'https://peestream.in/', - Origin: 'https://peestream.in', + Referer: 'https://net79.cc/', + Origin: 'https://net79.cc', }, }], }, @@ -437,6 +393,24 @@ export const SOURCES = [ multiUrl: true, }, + { + key: 'rivo', + label: 'Rivo', + sourceFile: 'rivo', + proxyParam: 'rv', + timeout: 25000, + jitter: 500, + retries: 2, + multiUrl: true, + cdnHeaders: [{ + pattern: /rivo\.st/i, + headers: { + Referer: 'https://f.rivo.st/', + Origin: 'https://f.rivo.st', + }, + }], + }, + { key: 'streamaggregator', label: 'StreamAggregator', @@ -467,7 +441,7 @@ export const SOURCES = [ multiUrl: true, skipProxy: true, cdnHeaders: [{ - pattern: /thugtv\.online|thuktv\.onrender\.com/i, + pattern: /thugtv\.online|fcxmb\.com|hscow\.com/i, headers: { Referer: 'https://thugtv.online/', Origin: 'https://thugtv.online', @@ -508,15 +482,22 @@ export const SOURCES = [ }, { - key: 'vidgod', - label: 'VidGod', - sourceFile: 'vidgod', - proxyParam: 'vg', + key: 'vidora', + label: 'Vidora', + sourceFile: 'vidora', + proxyParam: 'vdra', timeout: 25000, jitter: 500, retries: 2, multiUrl: true, skipProxy: true, + cdnHeaders: [{ + pattern: /rousav\.tech|vidbolt\.xyz|vidrift\.in|goldenkite\.top|ravok\.buzz/i, + headers: { + Referer: 'https://vidora-3l2w.onrender.com/', + Origin: 'https://vidora-3l2w.onrender.com', + }, + }], }, { @@ -531,41 +512,6 @@ export const SOURCES = [ multiUrl: true, }, - { - key: 'vidnest', - label: 'VidNest', - sourceFile: 'vidnest', - proxyParam: 'vdn', - timeout: 20000, - retries: 1, - jitter: 0, - multiUrl: true, - }, - - { - key: 'vidnest-sub', - label: 'VidNest (Sub)', - sourceFile: 'vidnest', - proxyParam: 'vdn', - timeout: 20000, - retries: 1, - jitter: 0, - multiUrl: true, - skipProxy: true, - }, - - { - key: 'vidnest-dub', - label: 'VidNest (Dub)', - sourceFile: 'vidnest', - proxyParam: 'vdn', - timeout: 20000, - retries: 1, - jitter: 0, - multiUrl: true, - skipProxy: true, - }, - { key: 'vidrock', label: 'VidRock', @@ -681,6 +627,25 @@ export const SOURCES = [ }], }, + { + key: 'yapgrid', + label: 'YapGrid', + sourceFile: 'yapgrid', + proxyParam: 'yap', + timeout: 25000, + jitter: 500, + retries: 2, + multiUrl: true, + skipProxy: true, + cdnHeaders: [{ + pattern: /yapgrid\.com|embedwave\.cc/i, + headers: { + Referer: 'https://yapgrid.com/', + Origin: 'https://yapgrid.com', + }, + }], + }, + { key: 'yastream', label: 'YaStream', diff --git a/src/sources/anihq.js b/src/sources/anihq.js deleted file mode 100644 index 13b9e9f..0000000 --- a/src/sources/anihq.js +++ /dev/null @@ -1,124 +0,0 @@ -import { getTmdbInfo, USER_AGENT } from '../utils/helpers.js'; - -async function extractVoe(voeUrl) { - try { - let res = await fetch(voeUrl, { - headers: { - 'User-Agent': USER_AGENT, - 'Referer': 'https://anihq.cc/' - } - }); - - let html = await res.text(); - - const redirectMatch = html.match(/window\.location\.href\s*=\s*['"](https?:\/\/[^'"]+)['"]/); - if (redirectMatch) { - res = await fetch(redirectMatch[1], { - headers: { - 'User-Agent': USER_AGENT, - 'Referer': 'https://anihq.cc/' - } - }); - html = await res.text(); - } - - const mirrorUrl = res.url; - - const scriptMatch = html.match(/