Jump to content

Choose specific type of the item


jelum
Go to solution Solved by Luke,

Recommended Posts

jelum

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

Quote
CollectionType.Movies.ToString(), CollectionType.TvShows.ToString()

These are collection types, not item types, therefore not valid. Try Movie,Series

  • Thanks 1
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...