From 264378972b378d9ed74d85cb88ca140280211871 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Sun, 16 Jan 2022 00:54:55 +0200 Subject: [PATCH] TVSeason: Use IdsMixin --- trakt/tv.py | 5 ++--- trakt/users.py | 1 - 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/trakt/tv.py b/trakt/tv.py index ced76aa0..4ac4e1ed 100644 --- a/trakt/tv.py +++ b/trakt/tv.py @@ -384,7 +384,6 @@ def seasons(self): data = yield self.ext + '/seasons?extended=full' self._seasons = [] for season in data: - extract_ids(season) self._seasons.append(TVSeason(self.title, season['number'], **season)) yield self._seasons @@ -500,11 +499,11 @@ def __str__(self): __repr__ = __str__ -class TVSeason(object): +class TVSeason(IdsMixin): """Container for TV Seasons""" def __init__(self, show, season=1, slug=None, **kwargs): - super(TVSeason, self).__init__() + super().__init__() self.show = show self.season = season self.slug = slug or slugify(show) diff --git a/trakt/users.py b/trakt/users.py index 65091926..5689d33f 100644 --- a/trakt/users.py +++ b/trakt/users.py @@ -138,7 +138,6 @@ def get_items(self): item_data['slug'])) elif item_type == 'season': show_data = item.pop('show') - extract_ids(show_data) season = TVSeason(show_data['title'], item_data['number'], show_data['slug']) self._items.append(season)