Files
App/api/queries/query.config.ts
Violet Caulfield 1aca2b8314 whoa there champ
2025-01-24 06:39:03 -06:00

33 lines
827 B
TypeScript

import { ImageFormat } from "@jellyfin/sdk/lib/generated-client/models";
export const QueryConfig = {
limits: {
recents: 50, // TODO: Adjust this when we add a list navigator to the end of the recents
search: 25,
},
images: {
height: 300,
width: 300,
format: ImageFormat.Jpg
},
banners: {
fillHeight: 300,
fillWidth: 1000,
format: ImageFormat.Jpg,
},
logos: {
fillHeight: 50,
fillWidth: 300,
format: ImageFormat.Png
},
playerArtwork: {
height: 1000,
width: 1000,
format: ImageFormat.Jpg
},
staleTime: {
oneDay: 1000 * 60 * 60 * 24, // 1 Day
oneWeek: 1000 * 60 * 60 * 24 * 7, // 7 Days
oneFortnight: 1000 * 60 * 60 * 24 * 7 * 14 // 14 Days
}
}