Move get() function up for internal functions
@@ -17,6 +17,9 @@ def __getitem__(self, key):
def __contains__(self, key):
return key in self.config
+ def get(self, section, key):
+ return self[key] if key in self else self[section][key]
+
@cached_property
def trakt_to_plex(self):
return {
@@ -46,9 +49,6 @@ def sync_watched_status(self):
self.trakt_to_plex["watched_status"] or self.plex_to_trakt["watched_status"]
)
- def get(self, section, key):
- return self[key] if key in self else self[section][key]
-
class Sync:
def __init__(self, config: Config):
