fix playback

This commit is contained in:
Chris Kruining 2025-06-03 10:16:38 +02:00
parent 20aed86123
commit ac28de56d3
No known key found for this signature in database
GPG key ID: EB894A3560CCCAD2
6 changed files with 18 additions and 7 deletions

View file

@ -16,8 +16,12 @@ const lookupTable = query(async () => listItemIds(), 'content.lookupTable');
export const getHighlights = () => getContinueWatching(jellyfinUserId);
export const getStream = query(async (type: Entry['type'], id: string, range: string) => {
console.log(type, id);
const table = await lookupTable();
console.log(table, table[`${type}-${id}`].jellyfin);
return getItemStream(table[`${type}-${id}`].jellyfin, range);
}, 'content.stream');