feat: some shit

This commit is contained in:
2023-08-08 21:50:23 +02:00
parent 6123956f08
commit c7d0e97ac0
18 changed files with 482 additions and 73 deletions

View File

@@ -14,10 +14,27 @@ export function getMovie(id: number) {
return moviedb.movieInfo({ id });
}
export function getSeries(id: number) {
return moviedb.tvInfo({ id });
}
export function getMovieCredits(id: number) {
return moviedb.movieCredits(id);
}
export function getSeriesCredits(id: number) {
return moviedb.tvCredits(id);
}
export async function getMovieGenre(id: number) {
const genres = await cache.get("/genres/movies");
return moviedb.genreTvList();
}
export async function getSeriesGenre(id: number) {
const genres = await cache.get("/genres/series");
}
export async function getMoviePoster(id: string): Promise<ArrayBuffer> {
const cachedPoster = await cache.get("posters:" + id);