I saw that this was asked before, but it was flagged as against community guidelines, but I'm not sure why. Anyway, is there a way to get the episodes in DVD versus Aired order?
Can't find a movie or TV show? Login to create it.
Want to rate or add this item to a list?
Not a member?
Reply by superboy97
on May 22, 2022 at 4:21 PM
You can get either the aired order (main episodes list) or one of the episode groups available for the series.
Reply by Dan Hinsley
on May 29, 2022 at 1:27 PM
When I try to use this (either from my app for from the https://developers.themoviedb.org/3/tv-episode-groups/get-tv-episode-group-details url, I don't get any data. The call I am making is https://api.themoviedb.org/3/tv/episode_group/46592?api_key=&language=en-US.
Any idea what I am doing wrong?
Reply by superboy97
on May 29, 2022 at 1:42 PM
The series with Id 46592 doesn't have any episode groups defined : https://www.themoviedb.org/tv/46592-7/episode_groups
Reply by Dan Hinsley
on May 29, 2022 at 2:18 PM
Do you have an example of one that does?
Reply by superboy97
on May 29, 2022 at 2:26 PM
For example, Ascendance of a Bookworm (2019)
Reply by Dan Hinsley
on May 29, 2022 at 2:31 PM
What I'm looking for is something that had the DVD group defined. I want to be able to display the episodes in either Aired or DVD order.
Reply by superboy97
on May 29, 2022 at 2:36 PM
A group for a DVD order is a group like any other group. The only particularity is that it will have DVD in the type field.
Reply by Dan Hinsley
on May 29, 2022 at 2:42 PM
I understand, but I need to make sure that I'm parsing everything correctly, so I need at least one example of something with this group defined for testing purposes.
And I would also like to understand why I can't use the try it out function of the API documentation website. I've used it before, but now all I get are 503 service unavailable.
Reply by superboy97
on May 29, 2022 at 2:45 PM
The fields are exactly the same for all episode groups.
As it is already indicated in many posts about the API, the "Try it out" function is currently not working. It is blocked by its provider.
Reply by Dan Hinsley
on May 29, 2022 at 2:54 PM
When I get the groups for Ascendance of a Bookworm (2019), there is one group, type 6 (which is Production), but the fields wouldn't seem to work for type 3 (DVD), since what I would like to get from this group is the DVD order episode (with either the name or episode id so I can match it), which would seem to be an array of objects.
Am I confused about what the DVD episode group would contain?
Reply by superboy97
on May 29, 2022 at 2:57 PM
It will contain exactly the same things as the one you get here. The only difference will be the type value.
Reply by Dan Hinsley
on May 29, 2022 at 3:03 PM
I don't mean to be dense, but I'm still not getting it. When I get the type 6 episode_group, it contains:
{"results":[{"description":"","episode_count":24,"group_count":2,"id":"5ecf3c8596386400246c6c97","name":"Cours","network":null,"type":6}],"id":91768}
If I received a type 3, would it have the episode name/episode number in DVD order in some fashion?
Reply by superboy97
on May 29, 2022 at 3:18 PM
You first use the function get_tv_episode_groups (like you seem to have done here) to get the list of episode groups for the series.
And, after that, you use the function get_tv_episode_group_details with the id of the group you want to get the details of it.
Note : There may be multiple DVD order episode groups (for example, one for French DVDs and one for United States DVD, a group per release if there were multiple release of DVDs for the same show with different orders).
Reply by Dan Hinsley
on May 29, 2022 at 3:53 PM
Now I see, I didn't get that I had to do the second call. one last question, if the episode_group is a type 3, then when I get the details the episode number in the episodes array will the the DVD order. Is this correct?
And thanks for all you help.
Reply by superboy97
on May 29, 2022 at 4:04 PM
The order of the episodes in a group is determined by the "order" field.
The "season_number" and "episode_number" fields are links to the main episodes list to be able to get other informations about the episodes, for example the backdrops or the guest stars.
Bedtime for me now.