kevinnashuk 7 Posted March 14, 2025 Posted March 14, 2025 When I browse other folders, my music folders show up too. Here are my music folders, showing as expected @TeamB Now if I browse my Films folder, the films are showing, but the music is too Same with TV shows
TeamB 2438 Posted March 16, 2025 Posted March 16, 2025 (edited) yeah it looks like something is very screwed up with this now, everything is merging. I will have a look and see what I can find. Edited March 16, 2025 by TeamB
TeamB 2438 Posted March 16, 2025 Posted March 16, 2025 @LukeAny idea why MusicAlbums has a parentID of zero (server version 4.8.11.0) and why they would be returning in an InternalItemsQuery query = new InternalItemsQuery(); query.ParentIds = new long[] { request.parent }; BaseItem[] results = _libraryManager.GetItemList(query);
Luke 42077 Posted March 17, 2025 Posted March 17, 2025 Music albums are not part of the folder structure. They're virtualized containers built using metadata. What are you trying to do?
TeamB 2438 Posted March 17, 2025 Posted March 17, 2025 (edited) 5 hours ago, Luke said: Music albums are not part of the folder structure. They're virtualized containers built using metadata. What are you trying to do? But why dont they have any ParentID? Their parent ID is 0 (zero). The root cause of the issue I am seeing is the above query returns all the items with a ParentId of 0 (zero) even if I specify a filter of ParentIDs = X so for example: query.ParentIds = new long[] { 463 }; Which is a library of Movies, all Movies in that libray BUT also all the Albums from everywhere also get returned. Basically anything with a ParentId of 463 and also with a ParentId of 0 are returned. Edited March 17, 2025 by TeamB
TeamB 2438 Posted March 18, 2025 Posted March 18, 2025 @Luke So if Albums don't have a parent then how do I use: query.ParentIds = new long[] { request.parent }; to limit just albums from a particular library?
Luke 42077 Posted March 18, 2025 Posted March 18, 2025 Try setting query.IncludeItemTypes = MusicAlbum and Recursive=true Unless you are doing generic folder browsing, then just about all queries should have Recursive=true attached.
Solution TeamB 2438 Posted March 18, 2025 Solution Posted March 18, 2025 I did try that. The problem I have is that all MusicAlbum for ALL libraries are returned not just the library I set as the query.ParentIds Anyway for now I have run out of time and am just removing MusicAlbum as a supported type. 1
kevinnashuk 7 Posted March 18, 2025 Author Posted March 18, 2025 Just checked, now I can browse films and tv shows correctly, which are the only things I need to see and edit using Chapter API. Thank you 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