Added Cinejoy, cleaned up README

This commit is contained in:
endoverdosing
2026-07-29 23:18:25 -07:00
parent 482055836a
commit 902326bdcd
7 changed files with 282 additions and 75 deletions

View File

@@ -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 [];
}
}