This commit is contained in:
Chris Kruining 2025-05-27 16:15:56 +02:00
parent fbc040c317
commit 826a30f95f
No known key found for this signature in database
GPG key ID: EB894A3560CCCAD2
19 changed files with 430 additions and 170 deletions

View file

@ -2,7 +2,7 @@
import type { Category, Entry } from "./types";
import { query } from "@solidjs/router";
import { getContinueWatching, getRandomItems } from "./apis/jellyfin";
import { getContinueWatching, getItemStream, getRandomItems } from "./apis/jellyfin";
import {
getDiscovery,
getRecommendations,
@ -14,6 +14,7 @@ const jellyfinUserId = "a9c51af84bf54578a99ab4dd0ebf0763";
// export const getHighlights = () => getRandomItems(jellyfinUserId);
export const getHighlights = () => getContinueWatching(jellyfinUserId);
export const getStream = (id: string) => getItemStream(jellyfinUserId, id);
export const listCategories = query(async (): Promise<Category[]> => {
return [