Open glensc opened 2 years ago
Extracted from https://github.com/moogar0880/PyTrakt/pull/176 as the changes are breaking changes.
This will make only one trakt.tv API request to create list of TVSeason with TVEpisode objects.
TVSeason
TVEpisode
The properties are indexed in a dict by .number rather being a list:
dict
.number
list
show = TVShow('Game of Thrones') seasons = show.seasons assert len(seasons) == 9 assert seasons[1].episodes[1].title == 'Winter Is Coming'
Extracted from https://github.com/moogar0880/PyTrakt/pull/176 as the changes are breaking changes.
This will make only one trakt.tv API request to create list of
TVSeason
withTVEpisode
objects.The properties are indexed in a
dict
by.number
rather being alist
: