Skip to content

Commit

Permalink
Respect playback_status and clear_collected from server config override
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed Jul 7, 2024
1 parent 99848d2 commit 9d63183
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions plextraktsync/config/SyncConfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ def trakt_to_plex(self):
"liked_lists": self.get("trakt_to_plex", "liked_lists"),
"watchlist": self.get("trakt_to_plex", "watchlist"),
"watchlist_as_playlist": self.get("trakt_to_plex", "watchlist_as_playlist"),
"playback_status": self.get("trakt_to_plex", "playback_status"),
}

@cached_property
Expand All @@ -48,6 +49,7 @@ def plex_to_trakt(self):
"ratings": self.get("plex_to_trakt", "ratings"),
"collection": self.get("plex_to_trakt", "collection"),
"watchlist": self.get("plex_to_trakt", "watchlist"),
"clear_collected": self.get("plex_to_trakt", "clear_collected"),
}

@cached_property
Expand All @@ -57,8 +59,7 @@ def sync_ratings(self):
@cached_property
def clear_collected(self):
return (
self.plex_to_trakt["collection"]
and self["plex_to_trakt"]["clear_collected"]
self.plex_to_trakt["collection"] and self.plex_to_trakt["clear_collected"]
)

@cached_property
Expand All @@ -73,7 +74,7 @@ def liked_lists_keep_watched(self):

@cached_property
def sync_playback_status(self):
return self["trakt_to_plex"]["playback_status"]
return self.trakt_to_plex["playback_status"]

@cached_property
def update_plex_wl(self):
Expand Down

0 comments on commit 9d63183

Please sign in to comment.