Add progressbar factory
@@ -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
