mirror of
https://gitlab.com/vyla-entertainment/sdk.git
synced 2026-11-20 00:57:30 -05:00
Added Cinejoy, cleaned up README
This commit is contained in:
@@ -1,8 +1,12 @@
|
||||
import { getDownloads, getDownloadsTv } from "./sources/trendimovies.js";
|
||||
|
||||
export async function fetchDownloads(id, s = null, e = null) {
|
||||
const res = s != null && e != null
|
||||
? await getDownloadsTv(id, s, e)
|
||||
: await getDownloads(id);
|
||||
return res;
|
||||
try {
|
||||
const res = s != null && e != null
|
||||
? await getDownloadsTv(id, s, e)
|
||||
: await getDownloads(id);
|
||||
return res || [];
|
||||
} catch {
|
||||
return [];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user