fix downloads & readme update

This commit is contained in:
GavinGoGaming
2026-07-27 23:36:01 -07:00
parent 0d8f628923
commit 20e9ce64ec
4 changed files with 14 additions and 7 deletions

View File

@@ -25,7 +25,7 @@ You can now use this to access Vyla's content.
```js ```js
// Get sources // Get sources
// Args: excludeDisabled // Args: excludeDisabled
sdk.getSources(false); sdk.getSources(false); -> {key, timeout, label, ...}[]
// Get subtitles // Get subtitles
// Args: tmdb id, season?, episode? // Args: tmdb id, season?, episode?
@@ -37,4 +37,8 @@ await sdk.probeSource('nebula'); -> {ok, ms}
// Probe & test all sources // Probe & test all sources
await sdk.probeAllSources(); -> {'key': {ok, ms}, ...} await sdk.probeAllSources(); -> {'key': {ok, ms}, ...}
// Get HLS streams
// Args: source key, tmdb id, season?, episode?, clientIP?
await sdk.getStream('nebula', '0000000', null, null, null) -> {allUrls: {url, quality, label?, server?, type?, skipProxy?, skipVerify?, headers? ...}[]}
``` ```

View File

@@ -24,5 +24,8 @@
"keywords": [], "keywords": [],
"devDependencies": { "devDependencies": {
"dotenv": "^17.4.2" "dotenv": "^17.4.2"
},
"publishConfig": {
"access": "public"
} }
} }

View File

@@ -1,4 +1,4 @@
import { getDownloads, getDownloadsTv } from "./sources/trendimovies"; import { getDownloads, getDownloadsTv } from "./sources/trendimovies.js";
export async function fetchDownloads(id, s = null, e = null) { export async function fetchDownloads(id, s = null, e = null) {
const res = s != null && e != null const res = s != null && e != null

View File

@@ -10,11 +10,11 @@ const sdk = new VylaSDK({
}); });
// 'true' is excludeDisabled // 'true' is excludeDisabled
// const sources = sdk.getSources(true); const sources = sdk.getSources(true);
// const source = sources.find(s => s.key === 'lookmovie'); const source = sources.find(s => s.key === 'goated');
// const result = await sdk.getStream(source.key, BACKROOMS); const result = await sdk.getStream(source.key, BACKROOMS);
// console.log("Result:", result.allUrls[0].url); console.log("Result:", result);
// const tests = { // const tests = {
// probeAll(log) { // probeAll(log) {