From c306ee0e489a053a6c5e268f16bc9f7de309b58a Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Thu, 18 Mar 2021 09:10:00 -0400 Subject: [PATCH] fix for #121 --- modules/trakttv.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 = []