Luke 37179 Posted November 16, 2013 Share Posted November 16, 2013 This is a new query param being added. If you want to get episodes for season 2, instead of doing it the folder-based way, you can now do a recursive query at the series level to get all episodes for season 2. This will allow specials that aired during the season to be included. In addition a new property has been added - SpecialSeasonNumber. For specials, this will tell you the season it aired within. 2 Link to comment Share on other sites More sharing options...
ScottIsAFool 517 Posted November 18, 2013 Share Posted November 18, 2013 This could be handy Link to comment Share on other sites More sharing options...
Luke 37179 Posted November 19, 2013 Author Share Posted November 19, 2013 give it the week before you look into adding it. it currently requires two sort orders to get it right, and may end up requiring a third. so i may end up creating one that encapsulates them all. Link to comment Share on other sites More sharing options...
ScottIsAFool 517 Posted November 19, 2013 Share Posted November 19, 2013 Will hold off then Link to comment Share on other sites More sharing options...
Luke 37179 Posted November 22, 2013 Author Share Posted November 22, 2013 Ok, guidelines for this are, instead of doing the typical folder-based queries to get episodes for a season, you sill instead do a recursive query at the series level. Use a filter of AiredDuringSeason=2 And a sort order of SortBy=AiredEpisodeOrder Link to comment Share on other sites More sharing options...
Luke 37179 Posted November 22, 2013 Author Share Posted November 22, 2013 So based on my comments about a specialized endpoint for episodes, we now have: /Shows/{id}/Episodes?userid=xxx&season=xxx&fields=xxx Not only will this encapsulate all of the above for you, but it will also factor in user configuration around missing/unaired episodes. For raw access you can continue to use the generic /Items endpoint, but I would recommend switching to this. This could open the door for series-specific settings if we ever wanted to. For Roku, it also supports ExcludeLocationTypes so that you can filter out missing & unaired regardless of user settings. Link to comment Share on other sites More sharing options...
Luke 37179 Posted November 22, 2013 Author Share Posted November 22, 2013 I will be adding this to apiclient shortly. Link to comment Share on other sites More sharing options...
gcw07 347 Posted November 22, 2013 Share Posted November 22, 2013 Sounds good. Link to comment Share on other sites More sharing options...
ScottIsAFool 517 Posted November 22, 2013 Share Posted November 22, 2013 Cool Link to comment Share on other sites More sharing options...
ebr 14948 Posted November 30, 2013 Share Posted November 30, 2013 Due to the generic display nature of MBC, I'm not sure I can ever implement this globally. I can do it for any specialized views, but most retrieval is simply parent/child relationships with no regard to what the parents are. Link to comment Share on other sites More sharing options...
Luke 37179 Posted November 30, 2013 Author Share Posted November 30, 2013 @@Redshirt @@ScottIsAFool @@darwindeeds @@gcw07 @@ebr @@7illusions @@Armand I've added a specialized seasons endpoint. So now there's: /Shows/{id}/Seasons?userid=xxx&fields=xxx /Shows/{id}/Episodes?userid=xxx&seasonId=xxx&fields=xxx No rush, but please make sure to switch to the new api. You can take your time because the generic calls will always work, but please add this to your to do list. I'm going to be adding support for series without season folders and this will be the only way to get that. They both support IsMissing=false and IsVirtualUnaired=false so that Grant can override the server setting and filter out the items for Roku. (Not ExcludeLocationTypes because the above project of supporting series without season folders might require virtual seasons). For ApiClient the methods are GetSeasonsAsync and GetEpisodesAsync 1 Link to comment Share on other sites More sharing options...
Luke 37179 Posted November 30, 2013 Author Share Posted November 30, 2013 Ok, that's fine. Link to comment Share on other sites More sharing options...
Luke 37179 Posted November 30, 2013 Author Share Posted November 30, 2013 One more thing - in the rare event a season doesn't have a number, the /Episodes endpoint will also accept seasonId 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