jelum 36 Posted April 29, 2023 Posted April 29, 2023 Hi, How I can choose all video and series that have a specific ProviderId and doesn't have another ProviderId? I use the following code, but it looks like it takes actors as well QueryResult<BaseItem> itemsToUpdateResult = _libraryManager.QueryItems(new InternalItemsQuery() { IncludeItemTypes = new[] { CollectionType.Movies.ToString(), CollectionType.TvShows.ToString() }, MissingAnyProviderId = new[] { Plugin.PluginKey }, HasAnyProviderId = new[] { MetadataProviders.Imdb.ToString(), MetadataProviders.Tmdb.ToString() }, });
Luke 42077 Posted April 29, 2023 Posted April 29, 2023 Quote CollectionType.Movies.ToString(), CollectionType.TvShows.ToString() These are collection types, not item types, therefore not valid. Try Movie,Series 1
jelum 36 Posted April 30, 2023 Author Posted April 30, 2023 Thanks for the answer, Does Emby have an enum for item types?
Solution Luke 42077 Posted April 30, 2023 Solution Posted April 30, 2023 No, you’d do something like typeof movie. Name 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now