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

Restrict series/programs to uncategorized items

This commit is contained in:
Joe Rogers 2022-05-23 15:54:33 +02:00
parent 46daea5238
commit 07d2537de6
No known key found for this signature in database
GPG key ID: 0074AD57B8FDBBB4

View file

@ -83,7 +83,11 @@ const LiveTVSearchResults: FunctionComponent<LiveTVSearchResultsProps> = ({ serv
// Episodes row // Episodes row
fetchItems(apiClient, { fetchItems(apiClient, {
IncludeItemTypes: 'LiveTvProgram', IncludeItemTypes: 'LiveTvProgram',
IsSeries: true IsMovie: false,
IsSeries: true,
IsSports: false,
IsKids: false,
IsNews: false
}).then(result => setEpisodes(result.Items || [])); }).then(result => setEpisodes(result.Items || []));
// Sports row // Sports row
fetchItems(apiClient, { fetchItems(apiClient, {
@ -101,8 +105,14 @@ const LiveTVSearchResults: FunctionComponent<LiveTVSearchResultsProps> = ({ serv
IsNews: true IsNews: true
}).then(result => setNews(result.Items || [])); }).then(result => setNews(result.Items || []));
// Programs row // Programs row
fetchItems(apiClient, { IncludeItemTypes: 'LiveTvProgram' }) fetchItems(apiClient, {
.then(result => setPrograms(result.Items || [])); IncludeItemTypes: 'LiveTvProgram',
IsMovie: false,
IsSeries: false,
IsSports: false,
IsKids: false,
IsNews: false
}).then(result => setPrograms(result.Items || []));
// Channels row // Channels row
fetchItems(apiClient, { IncludeItemTypes: 'TvChannel' }) fetchItems(apiClient, { IncludeItemTypes: 'TvChannel' })
.then(result => setChannels(result.Items || [])); .then(result => setChannels(result.Items || []));