From e6294cc6fc4dc862ca469505dbdb6af19eee1f07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Wed, 11 Jan 2023 23:48:21 +0200 Subject: [PATCH] Fix gather usage --- plextraktsync/sync.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plextraktsync/sync.py b/plextraktsync/sync.py index de86e238517..257217a90ae 100644 --- a/plextraktsync/sync.py +++ b/plextraktsync/sync.py @@ -64,11 +64,11 @@ async def sync(self, walker: Walker, dry_run=False): if self.config.need_library_walk: movie_trakt_ids = set() async for movie in walker.find_movies(): - await asyncio.gather(*[ + await asyncio.gather( self.sync_collection(movie, dry_run=dry_run), self.sync_ratings(movie, dry_run=dry_run), self.sync_watched(movie, dry_run=dry_run), - ]) + ) if not is_partial: listutil.addPlexItemToLists(movie) if self.config.clear_collected: @@ -80,11 +80,11 @@ async def sync(self, walker: Walker, dry_run=False): shows = set() episode_trakt_ids = set() async for episode in walker.find_episodes(): - await asyncio.gather(*[ + await asyncio.gather( self.sync_collection(episode, dry_run=dry_run), self.sync_ratings(episode, dry_run=dry_run), self.sync_watched(episode, dry_run=dry_run), - ]) + ) if not is_partial: listutil.addPlexItemToLists(episode) if self.config.clear_collected: