diff --git a/server/routes/discover.ts b/server/routes/discover.ts index 8be3603d..c2c10515 100644 --- a/server/routes/discover.ts +++ b/server/routes/discover.ts @@ -703,7 +703,7 @@ discoverRoutes.get('/trending', async (req, res, next) => { const tmdb = createTmdbWithRegionLanguage(req.user); try { - const mediaType = (req.query.mediaType as 'all' | 'movie' | 'tv') ?? 'all'; + const mediaType = (req.query.mediaType as 'all' | 'movie' | 'tv' | 'music' | 'book') ?? 'all'; const timeWindow = (req.query.timeWindow as 'day' | 'week') === 'week' ? 'week' : 'day'; const language = (req.query.language as string) ?? req.locale; diff --git a/src/components/Discover/Trending.tsx b/src/components/Discover/Trending.tsx index 5abd9e8e..ad270477 100644 --- a/src/components/Discover/Trending.tsx +++ b/src/components/Discover/Trending.tsx @@ -20,7 +20,7 @@ const messages = defineMessages('components.Discover', { timeWindowWeek: 'Weekly', }); -type MediaType = 'all' | 'movie' | 'tv'; +type MediaType = 'all' | 'movie' | 'tv' | 'music' | 'book'; type TimeWindow = 'day' | 'week'; diff --git a/src/components/ExternalLinkBlock/index.tsx b/src/components/ExternalLinkBlock/index.tsx index d78b6931..63fe4175 100644 --- a/src/components/ExternalLinkBlock/index.tsx +++ b/src/components/ExternalLinkBlock/index.tsx @@ -12,7 +12,7 @@ import useSettings from '@app/hooks/useSettings'; import { MediaType } from '@server/constants/media'; import { MediaServerType } from '@server/constants/server'; -type ExternalLinkType = 'movie' | 'tv' | 'person'; +type ExternalLinkType = 'movie' | 'tv' | 'person' | 'music' | 'book'; interface ExternalLinkBlockProps { mediaType: ExternalLinkType; diff --git a/src/components/IssueModal/constants.ts b/src/components/IssueModal/constants.ts index 0a62e210..15bb9d4a 100644 --- a/src/components/IssueModal/constants.ts +++ b/src/components/IssueModal/constants.ts @@ -12,7 +12,7 @@ const messages = defineMessages('components.IssueModal', { interface IssueOption { name: MessageDescriptor; issueType: IssueType; - mediaType?: 'movie' | 'tv'; + mediaType?: 'movie' | 'tv' | 'music' | 'book'; } export const issueOptions: IssueOption[] = [ diff --git a/src/components/PersonDetails/index.tsx b/src/components/PersonDetails/index.tsx index c8538793..75374e68 100644 --- a/src/components/PersonDetails/index.tsx +++ b/src/components/PersonDetails/index.tsx @@ -27,7 +27,7 @@ const messages = defineMessages('components.PersonDetails', { ascharacter: 'as {character}', }); -type MediaType = 'all' | 'movie' | 'tv'; +type MediaType = 'all' | 'movie' | 'tv' | 'music' | 'book'; const PersonDetails = () => { const intl = useIntl(); diff --git a/src/components/StatusBadge/index.tsx b/src/components/StatusBadge/index.tsx index faea1fb5..907b4f31 100644 --- a/src/components/StatusBadge/index.tsx +++ b/src/components/StatusBadge/index.tsx @@ -29,7 +29,7 @@ interface StatusBadgeProps { plexUrl?: string; serviceUrl?: string; tmdbId?: number; - mediaType?: 'movie' | 'tv'; + mediaType?: 'movie' | 'tv' | 'music' | 'book'; title?: string | string[]; statusLabelOverride?: string; }