rbjtech 4289 Posted August 8, 2023 Share Posted August 8, 2023 Hi All, So I'm very new to c# - and using the framework from one of @Cheesegeezerplugins to create a test channel. That's all fine and working ok - but try as I might, I cannot get it to query anything based on 'Genre'. I can't get the API to work either when query = Genre. All other fields I've tried seem to work ok. How can I add for example Genre = 'Action' into the query below - is this even possible in BaseItem, as I can't even find Genre ... Any help appreciated .. ! Thanks. QueryResult<BaseItem> libraryResult = LibraryManager.GetItemsResult(new InternalItemsQuery(user) { Recursive = true, MaxParentalRating = userMaxRating, MediaTypes = new[] {"Video"}, ExcludeTags = new []{"top-pick"}, IncludeItemTypes = new[] { nameof(Movie)}, //, nameof(Episode)}, ExcludeItemTypes = new[] { nameof(Trailer), nameof(BoxSet), nameof(Channel) }, Years = new[] {2013}, DtoOptions = new DtoOptions(true), }); Link to comment Share on other sites More sharing options...
ebr 14933 Posted August 8, 2023 Share Posted August 8, 2023 Hey. You'll need to use "GenreIds=xxxx,xxxx" which means you will have to obtain the specific ID of the genre you want as opposed to text. 1 Link to comment Share on other sites More sharing options...
rbjtech 4289 Posted August 8, 2023 Author Share Posted August 8, 2023 11 minutes ago, ebr said: Hey. You'll need to use "GenreIds=xxxx,xxxx" which means you will have to obtain the specific ID of the genre you want as opposed to text. Thanks Eric - I did try that tbh but then got into some other issues converting to a long - let me have another look - thanks 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