removed trakt_played

pull/102/head
meisnate12 4 years ago
parent 0525f78f0f
commit 97da575aa2

@ -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'}")

@ -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"
]

Loading…
Cancel
Save