diff --git a/modules/trakttv.py b/modules/trakttv.py index 2a7adb6a..519a7c8b 100644 --- a/modules/trakttv.py +++ b/modules/trakttv.py @@ -113,8 +113,8 @@ class TraktAPI: def get_pagenation(self, pagenation, amount, is_movie): items = self.send_request(f"{self.base_url}/{'movies' if is_movie else 'shows'}/{pagenation}?limit={amount}") - if is_movie: return [item["ids"]["tmdb"] for item in items], [] - else: return [], [item["ids"]["tvdb"] for item in items] + if is_movie: return [item["movie"]["ids"]["tmdb"] for item in items], [] + else: return [], [item["show"]["ids"]["tvdb"] for item in items] def validate_trakt_list(self, values): trakt_values = []