enable auto mode with watched + played list types

pull/35/head
James 7 years ago
parent e1c2a1d314
commit a9c09ab17b

@ -11,7 +11,7 @@ log = logger.get_logger(__name__)
class Trakt: class Trakt:
non_user_lists = ['anticipated', 'trending', 'popular', 'boxoffice'] non_user_lists = ['anticipated', 'trending', 'popular', 'boxoffice', 'watched', 'played']
def __init__(self, cfg): def __init__(self, cfg):
self.cfg = cfg self.cfg = cfg

@ -549,7 +549,8 @@ def automatic_shows(add_delay=2.5, sort='votes', no_search=False, notifications=
if list_type.lower() == 'interval': if list_type.lower() == 'interval':
continue 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 limit = value
if limit <= 0: 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': if list_type.lower() == 'interval':
continue 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 limit = value
if limit <= 0: if limit <= 0:

Loading…
Cancel
Save