Use factory for progressbar
MODIFY
plex_trakt_sync/commands/sync.py
plex_trakt_sync/commands/sync.py
@@ -106,7 +106,7 @@ def sync(sync_option: str, library: str, show: str, movie: str, batch_size: int,
plex = factory.plex_api()
trakt = factory.trakt_api(batch_size=batch_size)
mf = factory.media_factory(batch_size=batch_size)
- pb = None if no_progress_bar else tqdm
+ pb = factory.progressbar(not no_progress_bar)
w = Walker(plex, mf, movies=movies, shows=tv, progressbar=pb)
if library:

MODIFY
plex_trakt_sync/commands/unmatched.py
plex_trakt_sync/commands/unmatched.py
@@ -22,7 +22,7 @@ def unmatched(no_progress_bar: bool):
ensure_login()
plex = factory.plex_api()
mf = factory.media_factory()
- pb = None if no_progress_bar else tqdm
+ pb = factory.progressbar(not no_progress_bar)
walker = Walker(plex, mf, progressbar=pb)
if not walker.is_valid():

Use factory for progressbar