Handle trakt liked_lists, watchlist according to sync config
MODIFY
plex_trakt_sync/sync.py
plex_trakt_sync/sync.py
@@ -70,14 +70,14 @@ def sync(self, walker: Walker, dry_run=False):
trakt.watched_shows,
trakt.movie_collection_set,
trakt.ratings,
- trakt.watchlist_movies,
trakt.liked_lists,
])
console.log(f"Cached {n} Trakt items")
- if trakt.watchlist_movies:
+ if self.config.trakt_to_plex["watchlist"] and trakt.watchlist_movies:
listutil.addList(None, "Trakt Watchlist", trakt_list=trakt.watchlist_movies)
+ if self.config.trakt_to_plex["liked_lists"]:
for lst in trakt.liked_lists:
listutil.addList(lst['username'], lst['listname'])

MODIFY
plex_trakt_sync/trakt_api.py
plex_trakt_sync/trakt_api.py
@@ -82,9 +82,6 @@ def me(self):
@nocache
@rate_limit()
def liked_lists(self):
- CONFIG = factory.config()
- if not CONFIG['sync']['liked_lists']:
- return []
return pytrakt_extensions.get_liked_lists()
@property
@@ -137,10 +134,6 @@ def watched_shows(self):
@nocache
@rate_limit()
def watchlist_movies(self):
- CONFIG = factory.config()
- if not CONFIG['sync']['watchlist']:
- return []
-
return self.me.watchlist_movies
@property

Handle trakt liked_lists, watchlist according to sync config