Add progressbar factory
MODIFY
plex_trakt_sync/factory.py
plex_trakt_sync/factory.py
@@ -56,6 +56,15 @@ def requests_cache(self):
return requests_cache
+ @memoize
+ def progressbar(self, enabled=True):
+ if enabled:
+ from tqdm import tqdm
+
+ return tqdm
+
+ return None
+
@memoize
def config(self):
from plex_trakt_sync.config import CONFIG

Add progressbar factory