Skip to content

Commit

Permalink
Use async in Sync
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed Apr 16, 2024
1 parent 1a24890 commit 72d5f93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plextraktsync/sync/Sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ async def sync(self, walker: Walker, dry_run=False):

if self.config.need_library_walk:
async for movie in walker.find_movies():
pm.hook.walk_movie(movie=movie, dry_run=dry_run)
await pm.ahook.walk_movie(movie=movie, dry_run=dry_run)
if add_to_lists:
trakt_lists.add_to_lists(movie)

async for episode in walker.find_episodes():
pm.hook.walk_episode(episode=episode, dry_run=dry_run)
await pm.hook.walk_episode(episode=episode, dry_run=dry_run)
if add_to_lists:
trakt_lists.add_to_lists(episode)

Expand Down

0 comments on commit 72d5f93

Please sign in to comment.