From a8f66a621a01949fad3717336ab49ca9da394ac3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Thu, 31 Aug 2023 21:07:03 +0300 Subject: [PATCH] Add sync_config property to PlexServerConfig --- plextraktsync/config/PlexServerConfig.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/plextraktsync/config/PlexServerConfig.py b/plextraktsync/config/PlexServerConfig.py index 99f96d25f5..394ab8355c 100644 --- a/plextraktsync/config/PlexServerConfig.py +++ b/plextraktsync/config/PlexServerConfig.py @@ -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"]