Skip to content

Commit

Permalink
add vote_average to Seasons
Browse files Browse the repository at this point in the history
  • Loading branch information
meisnate12 committed Mar 28, 2024
1 parent 66fb9ba commit 31639e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.2.7
1.2.8
4 changes: 3 additions & 1 deletion tmdbapis/objs/reload.py
Original file line number Diff line number Diff line change
Expand Up @@ -814,6 +814,7 @@ class Season(TMDbReload):
tvdb_id (int): TVDB ID of the Season.
tvrage_id (int): TV Rage ID of the Season.
videos (List[:class:`~tmdbapis.objs.simple.Video`]): List of Videos associated with the Season.
vote_average (float): Vote Average for the TV Season.
"""

def __init__(self, tmdb, data, tv_id, load=False, partial=False):
Expand Down Expand Up @@ -843,10 +844,11 @@ def _load(self, data, partial=False):
self.tvdb_id = self._parse(attrs=["external_ids", "tvdb_id"], value_type="int")
self.tvrage_id = self._parse(attrs=["external_ids", "tvrage_id"], value_type="int")
self.videos = self._parse(attrs=["videos", "results"], value_type="video", is_list=True)
self.vote_average = self._parse(attrs="vote_average", value_type="float")
self._finish(self.name)

def _append_str(self):
return "images,translations"
return "images,external_ids,translations,aggregate_credits,credits"

def _full_load(self, partial=None):
return self._api.tv_seasons_get_details(
Expand Down

0 comments on commit 31639e6

Please sign in to comment.