Skip to content

Commit

Permalink
Add sync_config property to PlexServerConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed Sep 1, 2023
1 parent 6f5a84d commit a8f66a6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions plextraktsync/config/PlexServerConfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,10 @@ def asdict(self):
del data["name"]

return data

@property
def sync_config(self):
if self.config is None or "sync" not in self.config or self.config["sync"] is None:
return {}

return self.config["sync"]

0 comments on commit a8f66a6

Please sign in to comment.