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

not_found episode list can contain either episode or series/season/episode response. #157

Open
SenorSmartyPants opened this issue Jul 9, 2022 · 0 comments

Comments

@SenorSmartyPants
Copy link
Contributor

SenorSmartyPants commented Jul 9, 2022

The NotFoundObjects Episodes list can contain a mix of TraktEpisodes and TraktShows/TraktSeason/TraktEpisode structure. It will contain TraktShows.. if the episodes are passed in without provider ids.

Currently, the show ids and used to set the episode ids in the response when no episode ids are passed in. The JSON should be parsed so it returns all the data provided.

/// <summary>
/// Gets or sets the episodes.
/// </summary>
[JsonPropertyName("episodes")]
public IReadOnlyList<TraktEpisode> Episodes { get; set; }

Check out this Trakt API issue I created for examples of the return data.

trakt/api-help#357

I uncovered this issue when working on #156

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

No branches or pull requests

1 participant