Show progressbar when processing section
@@ -94,7 +94,8 @@ def sync_show_watched(pm, tm, pe, te, trakt_watched_shows, plex: PlexApi, trakt:
def for_each_pair(sections, trakt: TraktApi):
for section in sections:
with measure_time(f"Processing section {section.title}"):
- for pm in section.items():
+ with click.progressbar(section.items(), label=f"Processing {section.title}") as items:
+ for pm in items:
if not pm.provider:
logger.error(f'[{pm}]: Unrecognized GUID {pm.guid}')
continue
