Change factory.walk_config to property
MODIFY
plextraktsync/commands/sync.py
plextraktsync/commands/sync.py
@@ -35,7 +35,7 @@ def sync(
progressbar=not no_progress_bar,
)
ensure_login()
- wc = factory.walk_config().update(movies=movies, shows=shows)
+ wc = factory.walk_config.update(movies=movies, shows=shows)
w = factory.walker()
if ids:

MODIFY
plextraktsync/factory.py
plextraktsync/factory.py
@@ -102,7 +102,7 @@ def run_config(self):
return config
- @memoize
+ @cached_property
def walk_config(self):
from plextraktsync.walker import WalkConfig
@@ -121,7 +121,7 @@ def walker(self):
from plextraktsync.walker import Walker
config = self.run_config
- walk_config = self.walk_config()
+ walk_config = self.walk_config
plex = self.plex_api
trakt = self.trakt_api
mf = self.media_factory

Change factory.walk_config to property