1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Tiny fixup

This commit is contained in:
viown 2025-03-06 18:53:18 +03:00
parent d9aa7319be
commit 2776e660fa
6 changed files with 21 additions and 23 deletions

View file

@ -17,7 +17,7 @@ const fetchLiveTv = (api: Api, userId: string | undefined, searchTerm: string |
api,
userId,
{
includeItemTypes: [BaseItemKind.LiveTvProgram],
includeItemTypes: [ BaseItemKind.LiveTvProgram ],
isMovie: true,
searchTerm: searchTerm
},
@ -34,7 +34,7 @@ const fetchLiveTv = (api: Api, userId: string | undefined, searchTerm: string |
api,
userId,
{
includeItemTypes: [BaseItemKind.LiveTvProgram],
includeItemTypes: [ BaseItemKind.LiveTvProgram ],
isMovie: false,
isSeries: true,
isSports: false,
@ -54,7 +54,7 @@ const fetchLiveTv = (api: Api, userId: string | undefined, searchTerm: string |
api,
userId,
{
includeItemTypes: [BaseItemKind.LiveTvProgram],
includeItemTypes: [ BaseItemKind.LiveTvProgram ],
isSports: true,
searchTerm: searchTerm
},
@ -70,7 +70,7 @@ const fetchLiveTv = (api: Api, userId: string | undefined, searchTerm: string |
api,
userId,
{
includeItemTypes: [BaseItemKind.LiveTvProgram],
includeItemTypes: [ BaseItemKind.LiveTvProgram ],
isKids: true,
searchTerm: searchTerm
},
@ -86,7 +86,7 @@ const fetchLiveTv = (api: Api, userId: string | undefined, searchTerm: string |
api,
userId,
{
includeItemTypes: [BaseItemKind.LiveTvProgram],
includeItemTypes: [ BaseItemKind.LiveTvProgram ],
isNews: true,
searchTerm: searchTerm
},
@ -102,7 +102,7 @@ const fetchLiveTv = (api: Api, userId: string | undefined, searchTerm: string |
api,
userId,
{
includeItemTypes: [BaseItemKind.LiveTvProgram],
includeItemTypes: [ BaseItemKind.LiveTvProgram ],
isMovie: false,
isSeries: false,
isSports: false,
@ -122,7 +122,7 @@ const fetchLiveTv = (api: Api, userId: string | undefined, searchTerm: string |
api,
userId,
{
includeItemTypes: [BaseItemKind.TvChannel],
includeItemTypes: [ BaseItemKind.TvChannel ],
searchTerm: searchTerm
},
{ signal }

View file

@ -1,7 +1,5 @@
import type {
BaseItemDto,
BaseItemKind
} from '@jellyfin/sdk/lib/generated-client';
import { BaseItemKind } from '@jellyfin/sdk/lib/generated-client/models/base-item-kind';
import type { BaseItemDto } from '@jellyfin/sdk/lib/generated-client/models/base-item-dto';
import { CollectionType } from '@jellyfin/sdk/lib/generated-client/models/collection-type';
import { useQuery } from '@tanstack/react-query';
import { useApi } from '../../../../../hooks/useApi';