Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getItems by the given ids and parentId, doesn't apply the parentId filter #880

Open
lluisd opened this issue Feb 4, 2025 · 1 comment
Open

Comments

@lluisd
Copy link

lluisd commented Feb 4, 2025

When I call GetItems like the example above by a given id movie, it returns it despite of the parentId filter. I give the parentId filter as 5b0d238e2f6d5609b709d7b76300e217 and it returns the movie from parentId 92ea7ccd163b3abe67f49f906e65f83b

That doesn't happens when I want to retrieve all movies (without the ids property). then it doesnt return movies from another parentId, it only returns movies from the given one 5b0d238e2f6d5609b709d7b76300e217

        const result = await getItemsApi(api).getItems(
            {
                ids: [id],
                isMovie: true,
                parentId:  "5b0d238e2f6d5609b709d7b76300e217",
                fields: [ItemFields.AirTime, ItemFields.CanDelete, ItemFields.CanDownload, ItemFields.ChannelInfo, ItemFields.Chapters,
                    ItemFields.Trickplay, ItemFields.ChildCount, ItemFields.CumulativeRunTimeTicks, ItemFields.CustomRating, ItemFields.DateCreated,
                    ItemFields.DateLastMediaAdded, ItemFields.DisplayPreferencesId, ItemFields.Etag, ItemFields.ExternalUrls, ItemFields.Genres,
                    ItemFields.HomePageUrl, ItemFields.ItemCounts, ItemFields.MediaSourceCount, ItemFields.MediaSources, ItemFields.OriginalTitle,
                    ItemFields.Overview, ItemFields.ParentId, ItemFields.Path, ItemFields.People, ItemFields.PlayAccess, ItemFields.ProductionLocations,
                    ItemFields.ProviderIds, ItemFields.PrimaryImageAspectRatio, ItemFields.RecursiveItemCount, ItemFields.Settings,  ItemFields.ScreenshotImageTags,
                    ItemFields.SeriesPrimaryImage, ItemFields.SeriesStudio, ItemFields.SortName, ItemFields.SpecialEpisodeNumbers, ItemFields.Studios,
                    ItemFields.Taglines, ItemFields.Tags, ItemFields.RemoteTrailers, ItemFields.MediaStreams, ItemFields.SeasonUserData, ItemFields.ServiceName,
                    ItemFields.ThemeSongIds, ItemFields.ThemeVideoIds, ItemFields.ExternalEtag, ItemFields.PresentationUniqueKey, ItemFields.InheritedParentalRatingValue,
                    ItemFields.ExternalSeriesId, ItemFields.SeriesPresentationUniqueKey, ItemFields.DateLastRefreshed, ItemFields.DateLastSaved, ItemFields.RefreshState,
                    ItemFields.ChannelImage, ItemFields.EnableMediaSourceDisplay, ItemFields.Width, ItemFields.Height, ItemFields.ExtraIds, ItemFields.LocalTrailerCount,
                    ItemFields.IsHd, ItemFields.SpecialFeatureCount]
            });

returns the item from another parentId

Image

@lluisd lluisd changed the title getItems from getItemsApi by filtering by ids doesn't take care about parentId filter getItems by the filters ids and parentId, doesn't apply the parentId filter Feb 4, 2025
@lluisd lluisd changed the title getItems by the filters ids and parentId, doesn't apply the parentId filter getItems by the given ids and parentId, doesn't apply the parentId filter Feb 4, 2025
@thornbill
Copy link
Member

This seems to be expected behavior for the API. Filters do not get applied when you explicitly request IDs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants