pünktchen 1350 Posted September 3, 2021 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)
chef 3808 Posted September 4, 2021 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
Luke 40119 Posted September 4, 2021 Posted September 4, 2021 If you already have the series object just call GetItems and pass Recursive=true and IncludeItemTypes Episode.
pünktchen 1350 Posted September 6, 2021 Author Posted September 6, 2021 Thank you both! It's the "Recursiv" thing i always forget...
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