Files
App/api/queries/query.config.ts
T
2025-04-11 23:48:21 +08:00

34 lines
684 B
TypeScript

import { ImageFormat } from '@jellyfin/sdk/lib/generated-client/models'
export const QueryConfig = {
limits: {
recents: 20,
search: 50, // TODO: make this a paginated search so limits don't even matter
},
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
},
}