From b0cf3f70a32af071682bb62a570e69632ac2b2f1 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 30 Jul 2026 06:21:46 +0000 Subject: [PATCH 1/3] 1.6.0 --- package-lock.json | 4 ++-- package.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index 9ab171e..a960909 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@vyla-entertainment/sdk", - "version": "1.5.0", + "version": "1.6.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@vyla-entertainment/sdk", - "version": "1.5.0", + "version": "1.6.0", "license": "CC-BY-NC-4.0", "devDependencies": { "dotenv": "^17.4.2" diff --git a/package.json b/package.json index 474f578..14ed0be 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@vyla-entertainment/sdk", - "version": "1.5.0", + "version": "1.6.0", "scripts": { "test": "node test/index.js" }, @@ -29,4 +29,4 @@ "publishConfig": { "access": "public" } -} \ No newline at end of file +} From a5258822e76d34a6957374d45beb88c2d5cbeaac Mon Sep 17 00:00:00 2001 From: Gavin Fox Date: Thu, 30 Jul 2026 00:23:53 -0700 Subject: [PATCH 2/3] fix proxied sources --- test/index.js | 45 +++------------------------------------------ 1 file changed, 3 insertions(+), 42 deletions(-) diff --git a/test/index.js b/test/index.js index b764776..61c720b 100644 --- a/test/index.js +++ b/test/index.js @@ -1,7 +1,6 @@ -import { HEALTH_PROBE_ID } from "../src/config.js"; import VylaSDK from "../src/sdk.js"; -import dotenv from "dotenv"; -dotenv.config(); +// import dotenv from "dotenv"; +// dotenv.config(); const BACKROOMS = '1083381'; @@ -9,46 +8,8 @@ const sdk = new VylaSDK({ tmdbApiKey: process.env.TMDB_API_KEY }); -// 'true' is excludeDisabled const sources = sdk.getSources(true); const source = sources.find(s => s.key === 'goated'); const result = await sdk.getStream(source.key, BACKROOMS); -console.log("Result:", result); - -// const tests = { -// probeAll(log) { -// const sources = sdk.getSources(true); -// let index = 0; - -// Promise.all(sources.map(async (source, idx) => { -// try { -// const result = await sdk.probeSource(source.key); -// index++; -// log(`(${index}/${sources.length}) source #${idx + 1} (${source.label}):`, result); -// } catch (err) { -// log(`Error probing source ${source.key}:`, err); -// } -// })).then(() => { -// log("All sources probed."); -// }); -// }, -// tryHealthProbe(log) { -// const sources = sdk.getSources(true); -// let index = 0; - -// Promise.all(sources.map(async (source, idx) => { -// try { -// const result = await sdk.getStream(source.key, HEALTH_PROBE_ID, null, null, null); -// index++; -// log(`(${index}/${sources.length}) source #${idx + 1} (${source.label}):`, result?.allUrls?.[0]?.url || result?.url || "no sources :("); -// } catch (err) { -// log(`Error probing source ${source.key}:`, err); -// } -// })).then(() => { -// log("All sources probed."); -// }); -// } -// } - -// tests.tryHealthProbe(console.log); \ No newline at end of file +console.log("Result:", result); \ No newline at end of file From 5feb0307ae1d6f2316d5d6f6d0f0625f7092ee82 Mon Sep 17 00:00:00 2001 From: Gavin Fox Date: Thu, 30 Jul 2026 00:28:14 -0700 Subject: [PATCH 3/3] sdk fix --- src/sdk.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sdk.d.ts b/src/sdk.d.ts index 7bef6e3..e9f94cd 100644 --- a/src/sdk.d.ts +++ b/src/sdk.d.ts @@ -95,7 +95,7 @@ export default class VylaSDK { s?: number | null, e?: number | null, clientIP?: string | null - ): Promise<{allUrls: StreamResult[]}>; + ): Promise; /** * Get subtitles for a movie or TV episode.