mirror of
https://gitlab.com/vyla-entertainment/sdk.git
synced 2026-11-21 17:45:46 -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
|
```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? ...}[]}
|
||||||
```
|
```
|
||||||
@@ -24,5 +24,8 @@
|
|||||||
"keywords": [],
|
"keywords": [],
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"dotenv": "^17.4.2"
|
"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) {
|
export async function fetchDownloads(id, s = null, e = null) {
|
||||||
const res = s != null && e != null
|
const res = s != null && e != null
|
||||||
|
|||||||
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user