Add is_partial method to WalkConfig
MODIFY
plextraktsync/walker.py
plextraktsync/walker.py
@@ -43,6 +43,23 @@ def add_show(self, show):
def add_movie(self, movie):
self.movie.append(movie)
+ @property
+ def is_partial(self):
+ """
+ Returns true if partial library walk is performed.
+ Due the way watchlist is filled, watchlists should only be updated on full walk.
+ """
+ # Single item provided
+ if self.library or self.movie or self.show or self.id:
+ return True
+
+ # Full sync of movies or shows
+ if self.walk_movies or self.walk_shows:
+ return False
+
+ # what is remaining?
+ return True
+
def is_valid(self):
# Single item provided
if self.library or self.movie or self.show or self.id:

Add is_partial method to WalkConfig