Cleanup factory.progressbar arguments
MODIFY
plextraktsync/commands/unmatched.py
plextraktsync/commands/unmatched.py
def unmatched(no_progress_bar: bool, local: bool):
- config = factory.run_config.update(progressbar=not no_progress_bar)
+ factory.run_config.update(progressbar=not no_progress_bar)
ensure_login()
plex = factory.plex_api
trakt = factory.trakt_api
mf = factory.media_factory
- pb = factory.progressbar(config.progressbar)
+ pb = factory.progressbar()
wc = WalkConfig()
walker = Walker(plex, trakt, mf, wc, progressbar=pb)

MODIFY
plextraktsync/factory.py
plextraktsync/factory.py
@@ -122,12 +122,11 @@ def plex_audio_codec(self):
def walker(self):
from plextraktsync.walker import Walker
- config = self.run_config
walk_config = self.walk_config
plex = self.plex_api
trakt = self.trakt_api
mf = self.media_factory
- pb = self.progressbar(config.progressbar)
+ pb = self.progressbar()
w = Walker(plex=plex, trakt=trakt, mf=mf, config=walk_config, progressbar=pb)
return w

Cleanup factory.progressbar arguments