Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Episode type attribute #96

Closed
wants to merge 2 commits into from
Closed

Conversation

ZelKami
Copy link
Contributor

@ZelKami ZelKami commented May 25, 2024

For a couple of months now, TMDB has been providing episode types (standard, mid_season and finale) when calling for tv season details.
With this PR, I added an episode_type attribute as an Enum to BaseTvEpisode.
Somehow, when calling for details of a single episode, the episode type is not provided which is why in those cases, the corresponding attribute will null.

The episode_type attribute is only returned when getting the details of a TV season and not when getting the details of a TV episode which is why this test is only added in assertTvSeason
@UweTrottmann
Copy link
Owner

Thank you! I'll have a look at this when I have time.

@UweTrottmann
Copy link
Owner

Rebased and removed unnecessary test data, then merged separately.

Thanks again, this will be in the next release!

@UweTrottmann UweTrottmann added this to the 2.11.0 milestone Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants