From 97da575aa2325536efe4155b2863f011534dc970 Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Wed, 10 Mar 2021 11:58:39 -0500 Subject: [PATCH] removed trakt_played --- modules/trakttv.py | 6 +++--- modules/util.py | 3 --- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/modules/trakttv.py b/modules/trakttv.py index 51942981..2a7adb6a 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" if is_movie else "tvdb"] for item in items], [] - else: return [], [item["ids"]["tmdb" if is_movie else "tvdb"] for item in items] + if is_movie: return [item["ids"]["tmdb"] for item in items], [] + else: return [], [item["ids"]["tvdb"] for item in items] def validate_trakt_list(self, values): trakt_values = [] @@ -145,7 +145,7 @@ class TraktAPI: logger.debug(f"Data: {data}") pretty = self.aliases[method] if method in self.aliases else method media_type = "Movie" if is_movie else "Show" - if method in ["trakt_trending", "trakt_popular", "trakt_recommended", "trakt_played", "trakt_watched", "trakt_collected"]: + if method in ["trakt_trending", "trakt_popular", "trakt_recommended", "trakt_watched", "trakt_collected"]: movie_ids, show_ids = self.get_pagenation(method[6:], data, is_movie) if status_message: logger.info(f"Processing {pretty}: {data} {media_type}{'' if data == 1 else 's'}") diff --git a/modules/util.py b/modules/util.py index 7735581c..c554142b 100644 --- a/modules/util.py +++ b/modules/util.py @@ -154,7 +154,6 @@ pretty_names = { "trakt_collected": "Trakt Collected", "trakt_list": "Trakt List", "trakt_list_details": "Trakt List", - "trakt_played": "Trakt Played", "trakt_popular": "Trakt Popular", "trakt_recommended": "Trakt Recommended", "trakt_trending": "Trakt Trending", @@ -290,7 +289,6 @@ all_lists = [ "trakt_collected", "trakt_list", "trakt_list_details", - "trakt_played", "trakt_popular", "trakt_recommended", "trakt_trending", @@ -396,7 +394,6 @@ count_lists = [ "trakt_trending", "trakt_popular", "trakt_recommended", - "trakt_played", "trakt_watched", "trakt_collected" ]