Skip to content
This repository was archived by the owner on Mar 16, 2025. It is now read-only.
Discussion options

You must be logged in to vote

This way :)

        var show = await _client.Shows.GetShowAsync(traktID, traktExtended);
                    TraktListResponse<ITraktEpisode> seasonEpisodesResponse = await _client.Seasons.GetSeasonAsync(traktID, (uint)historyData.extraData.season_number);

                    TraktListResponse<ITraktSeason> seasonsResponse = await _client.Seasons.GetAllSeasonsAsync(traktID);
                    var selSeason = seasonsResponse.Where(s => s.Number == (uint)historyData.extraData.season_number).FirstOrDefault();
                    if (selSeason != null)
                    {
                        var historyPost = TraktPost.NewSyncHistoryPost().WithSeason(selSeason).Build();

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by henrikfroehling
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants