pünktchen 1251 Posted September 3, 2021 Share Posted September 3, 2021 Topic title says it all. How do i get all episodes of a Series BaseItem? (Without getting all library episodes first and then query for DisplayParent.DisplayParent.Name) Link to comment Share on other sites More sharing options...
chef 3745 Posted September 4, 2021 Share Posted September 4, 2021 (edited) Using LibraryManager, set the InternalItemQuery() params: IncludeItemTypes 'Series'. Get the series BaseItem you want by name. (You could also add a search term if you know the name of the series you want, using 'NameStartsWith', or 'SearchName') Then do a new query with 'recursive = true', the 'parent = series', and IncludeItenTypes = new[] { "Episode" }' you can also include, or not include VirtualItems (missing/future episodes) is that right? Edited September 4, 2021 by chef Link to comment Share on other sites More sharing options...
Luke 37008 Posted September 4, 2021 Share Posted September 4, 2021 If you already have the series object just call GetItems and pass Recursive=true and IncludeItemTypes Episode. Link to comment Share on other sites More sharing options...
pünktchen 1251 Posted September 6, 2021 Author Share Posted September 6, 2021 Thank you both! It's the "Recursiv" thing i always forget... 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