diff --git a/plextraktsync/sync/Sync.py b/plextraktsync/sync/Sync.py index 9ff71f2f19..0a598506dd 100644 --- a/plextraktsync/sync/Sync.py +++ b/plextraktsync/sync/Sync.py @@ -44,7 +44,6 @@ def sync(self, walker: Walker, dry_run=False): self.walker = walker trakt_lists = TraktUserListCollection() is_partial = walker.is_partial and not dry_run - add_to_lists = not is_partial from plextraktsync.sync.plugin import SyncPluginManager pm = SyncPluginManager() @@ -53,11 +52,14 @@ def sync(self, walker: Walker, dry_run=False): pm.hook.init(sync=self, trakt_lists=trakt_lists, is_partial=is_partial, dry_run=dry_run) if self.config.update_plex_wl_as_pl: - if not add_to_lists: + if is_partial: self.logger.warning("Running partial library sync. Watchlist as playlist won't update because it needs full library sync.") else: trakt_lists.add_watchlist(self.trakt.watchlist_movies) + # Skip updating lists if it's empty + add_to_lists = not trakt_lists.is_empty + if self.config.need_library_walk: for movie in walker.find_movies(): pm.hook.walk_movie(movie=movie, dry_run=dry_run)