Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Respect playback_status and clear_collected from server config override #2006

Merged
merged 1 commit into from
Jul 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading