call trakt wl only if plex wl available
@@ -63,13 +63,13 @@ def sync(self, walker: Walker, dry_run=False):
self.update_trakt_wl = self.config.plex_to_trakt["watchlist"]
self.sync_wl = self.config.trakt_to_plex["watchlist"] or self.config.plex_to_trakt["watchlist"]
if self.sync_wl:
- self.trakt_wl_movies = {tm.trakt: tm for tm in trakt.watchlist_movies} or {}
- self.trakt_wl_shows = {tm.trakt: tm for tm in trakt.watchlist_shows} or {}
plex_wl = plex.watchlist()
if plex_wl is None:
self.sync_wl = False
else:
self.plex_wl = {pm.guid: pm for pm in plex_wl}
+ self.trakt_wl_movies = {tm.trakt: tm for tm in trakt.watchlist_movies} or {}
+ self.trakt_wl_shows = {tm.trakt: tm for tm in trakt.watchlist_shows} or {}
if self.update_plex_wl_as_pl:
listutil.addList(None, "Trakt Watchlist", trakt_list=trakt.watchlist_movies)
