rename list_set to slug_list
MODIFY
main.py
main.py
@@ -284,7 +284,7 @@ def main():
#logging.debug("Movie collection from trakt:", trakt_movie_collection)
trakt_watched_shows = pytrakt_extensions.allwatched()
if CONFIG['sync']['watchlist']:
- listutil.addList(None, "Trakt Watchlist", list_set=list(
+ listutil.addList(None, "Trakt Watchlist", slug_list=list(
map(lambda m: m.slug, trakt_user.watchlist_movies)))
#logging.debug("Movie watchlist from trakt:", trakt_movie_watchlist)
user_ratings = trakt_user.get_ratings(media_type='movies')

MODIFY
trakt_list_util.py
trakt_list_util.py
@@ -14,9 +14,9 @@ def __init__(self, username, listname):
self.slugs = list(map(lambda m: m.slug, [elem for elem in UserList._get(listname, username).get_items() if type(elem) == Movie]))
@staticmethod
- def from_set(listname, list_set):
+ def from_slug_list(listname, slug_list):
l = TraktList(None, listname)
- l.slugs = list_set
+ l.slugs = slug_list
return l
def addPlexMovie(self, slug, plex_movie):
@@ -41,9 +41,9 @@ class TraktListUtil():
def __init__(self):
self.lists = []
- def addList(self, username, listname, list_set = None):
- if list_set is not None:
- self.lists.append(TraktList.from_set(listname, list_set))
+ def addList(self, username, listname, slug_list = None):
+ if slug_list is not None:
+ self.lists.append(TraktList.from_slug_list(listname, slug_list))
logging.info("Downloaded List {}".format(listname))
return
try:

rename list_set to slug_list