From a9c09ab17bc08dc6b338ea36c8c9c9c7628099f2 Mon Sep 17 00:00:00 2001 From: James Date: Sun, 3 Jun 2018 01:49:03 +0100 Subject: [PATCH] enable auto mode with watched + played list types --- media/trakt.py | 2 +- traktarr.py | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/media/trakt.py b/media/trakt.py index f87232a..133f117 100644 --- a/media/trakt.py +++ b/media/trakt.py @@ -11,7 +11,7 @@ log = logger.get_logger(__name__) class Trakt: - non_user_lists = ['anticipated', 'trending', 'popular', 'boxoffice'] + non_user_lists = ['anticipated', 'trending', 'popular', 'boxoffice', 'watched', 'played'] def __init__(self, cfg): self.cfg = cfg diff --git a/traktarr.py b/traktarr.py index e8f1dc5..cb71193 100755 --- a/traktarr.py +++ b/traktarr.py @@ -549,7 +549,8 @@ def automatic_shows(add_delay=2.5, sort='votes', no_search=False, notifications= if list_type.lower() == 'interval': continue - if list_type.lower() in Trakt.non_user_lists: + if list_type.lower() in Trakt.non_user_lists or ( + '_' in list_type and list_type.lower().partition("_")[0] in Trakt.non_user_lists): limit = value if limit <= 0: @@ -637,7 +638,8 @@ def automatic_movies(add_delay=2.5, sort='votes', no_search=False, notifications if list_type.lower() == 'interval': continue - if list_type.lower() in Trakt.non_user_lists: + if list_type.lower() in Trakt.non_user_lists or ( + '_' in list_type and list_type.lower().partition("_")[0] in Trakt.non_user_lists): limit = value if limit <= 0: