jelum 17 Posted April 29, 2023 Share 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() }, }); Link to comment Share on other sites More sharing options...
Luke 37096 Posted April 29, 2023 Share 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 Link to comment Share on other sites More sharing options...
jelum 17 Posted April 30, 2023 Author Share Posted April 30, 2023 Thanks for the answer, Does Emby have an enum for item types? Link to comment Share on other sites More sharing options...
Solution Luke 37096 Posted April 30, 2023 Solution Share Posted April 30, 2023 No, you’d do something like typeof movie. Name 1 Link to comment Share on other sites More sharing options...
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