mirror of
https://gitlab.com/vyla-entertainment/sdk.git
synced 2026-11-13 05:37:31 -05:00
fix downloads & readme update
This commit is contained in:
@@ -25,7 +25,7 @@ You can now use this to access Vyla's content.
|
||||
```js
|
||||
// Get sources
|
||||
// Args: excludeDisabled
|
||||
sdk.getSources(false);
|
||||
sdk.getSources(false); -> {key, timeout, label, ...}[]
|
||||
|
||||
// Get subtitles
|
||||
// Args: tmdb id, season?, episode?
|
||||
@@ -37,4 +37,8 @@ await sdk.probeSource('nebula'); -> {ok, ms}
|
||||
|
||||
// Probe & test all sources
|
||||
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? ...}[]}
|
||||
```
|
||||
@@ -24,5 +24,8 @@
|
||||
"keywords": [],
|
||||
"devDependencies": {
|
||||
"dotenv": "^17.4.2"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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) {
|
||||
const res = s != null && e != null
|
||||
|
||||
@@ -10,11 +10,11 @@ const sdk = new VylaSDK({
|
||||
});
|
||||
|
||||
// 'true' is excludeDisabled
|
||||
// const sources = sdk.getSources(true);
|
||||
// const source = sources.find(s => s.key === 'lookmovie');
|
||||
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.allUrls[0].url);
|
||||
const result = await sdk.getStream(source.key, BACKROOMS);
|
||||
console.log("Result:", result);
|
||||
|
||||
// const tests = {
|
||||
// probeAll(log) {
|
||||
|
||||
Reference in New Issue
Block a user